/* Google Ads Course - Styles with Saffron, White, and Green Theme */

/* CSS Variables for Color Scheme */
:root {
    --saffron: #FF9933;
    --saffron-dark: #E8831C;
    --saffron-light: #FFB366;
    --green: #138808;
    --green-dark: #0F6906;
    --green-light: #1CA80F;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --border-color: #E0E0E0;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--off-white) 0%, #E8F5E9 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow);
    border-bottom: 4px solid var(--green);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2em;
    font-weight: 300;
    opacity: 0.95;
}

/* Main Content */
main {
    padding: 40px 0;
}

.content-section {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px var(--shadow);
    border-left: 5px solid var(--green);
}

.section-title {
    color: var(--saffron-dark);
    font-size: 2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--green);
    display: inline-block;
}

.section-description {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1em;
}

/* Ad Type Cards */
.ad-type-card {
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--shadow);
    border-color: var(--green);
}

.card-header {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-size: 1.5em;
}

.badge {
    background: var(--saffron);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
}

.card-body {
    padding: 20px;
}

.card-body p {
    margin-bottom: 12px;
    line-height: 1.8;
}

.card-body ul {
    margin-left: 20px;
    margin-top: 10px;
}

.card-body li {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.example-box {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border-left: 4px solid var(--saffron);
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px;
}

.example-box h4 {
    color: var(--saffron-dark);
    margin-bottom: 10px;
}

.ad-headline {
    color: #1A73E8;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.ad-url {
    color: var(--green);
    font-size: 0.9em;
    margin-bottom: 5px;
}

.ad-description {
    color: var(--text-dark);
    font-size: 0.95em;
}

.display-ad-example {
    background: linear-gradient(135deg, var(--saffron-light) 0%, var(--saffron) 100%);
    color: var(--white);
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    border: 3px dashed var(--white);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.metric-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 100%);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--shadow);
    border-color: var(--saffron);
}

.metric-card h3 {
    color: var(--green-dark);
    margin-bottom: 15px;
    font-size: 1.4em;
    border-bottom: 2px solid var(--saffron);
    padding-bottom: 8px;
}

.metric-definition {
    color: var(--text-dark);
    font-size: 1em;
    margin-bottom: 10px;
}

.formula-box {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-left: 4px solid var(--green);
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px;
}

.formula-box p {
    margin-bottom: 8px;
}

.formula-box strong {
    color: var(--green-dark);
}

.note {
    background: var(--saffron-light);
    color: var(--text-dark);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9em;
    margin-top: 10px;
    display: inline-block;
}

.small {
    font-size: 0.85em;
    color: var(--text-light);
}

/* Calculator Section */
.calculator-section {
    background: linear-gradient(135deg, #FFF9C4 0%, #FFF59D 100%);
    border-left: 5px solid var(--saffron);
}

.calculator-container {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px var(--shadow);
}

.calculator-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab-button {
    background: var(--off-white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: var(--saffron-light);
    color: var(--white);
    border-color: var(--saffron);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: var(--white);
    border-color: var(--green-dark);
}

.calculator-form {
    display: none;
}

.calculator-form.active {
    display: block;
}

.calculator-form h3 {
    color: var(--saffron-dark);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: var(--text-dark);
    font-weight: bold;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--green);
}

.calculate-btn {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow);
}

.calculate-btn:hover {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow);
}

.result-box {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    min-height: 60px;
}

.result-box.success {
    background: linear-gradient(135deg, #C8E6C9 0%, #A5D6A7 100%);
    border: 3px solid var(--green);
    color: var(--green-dark);
}

.result-box.error {
    background: linear-gradient(135deg, #FFCDD2 0%, #EF9A9A 100%);
    border: 3px solid #C62828;
    color: #C62828;
}

/* Campaign Example */
.campaign-example {
    background: linear-gradient(135deg, var(--off-white) 0%, #E3F2FD 100%);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.campaign-example h3 {
    color: var(--green-dark);
    font-size: 1.6em;
    margin-bottom: 20px;
}

.campaign-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-item {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--saffron);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9em;
}

.stat-value {
    color: var(--green-dark);
    font-size: 1.3em;
    font-weight: bold;
}

.campaign-metrics h4 {
    color: var(--saffron-dark);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.metrics-results {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.result-item {
    padding: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
}

.highlight {
    color: var(--green-dark);
    background: var(--saffron-light);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.campaign-conclusion {
    background: linear-gradient(135deg, #C8E6C9 0%, #A5D6A7 100%);
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--green);
}

.campaign-conclusion p {
    color: var(--text-dark);
    line-height: 1.8;
}

/* Takeaways Section */
.takeaways {
    display: grid;
    gap: 20px;
}

.takeaway-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: linear-gradient(135deg, var(--off-white) 0%, #FFF9C4 100%);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.takeaway-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 12px var(--shadow);
    border-color: var(--saffron);
}

.takeaway-item .number {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 8px var(--shadow);
}

.takeaway-item .content h4 {
    color: var(--green-dark);
    margin-bottom: 8px;
    font-size: 1.2em;
}

.takeaway-item .content p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 4px solid var(--saffron);
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1em;
    }

    .section-title {
        font-size: 1.5em;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .calculator-tabs {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
    }

    .campaign-stats {
        grid-template-columns: 1fr;
    }

    .takeaway-item {
        flex-direction: column;
    }

    .takeaway-item .number {
        align-self: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeIn 0.6s ease-out;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .calculator-section,
    footer {
        display: none;
    }

    .content-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
/* ========================================
   COMMENT SECTION STYLES
   Color Scheme: Blue, Green, White
   ======================================== */

/* Comment Section Container */
.comments-section {
    background: linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 100%);
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 5px solid #1E88E5;
    border-bottom: 5px solid #43A047;
}

.comments-container {
    max-width: 1000px;
    margin: 0 auto;
}

.comments-title {
    color: #1565C0;
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
}

.comments-subtitle {
    color: #546E7A;
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
}

/* Comment Form Container */
.comment-form-container {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #43A047;
}

.comment-form-container h3 {
    color: #1565C0;
    font-size: 1.6em;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Form Styles */
.comment-form,
.reply-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #263238;
    font-weight: 600;
    font-size: 1em;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #CFD8DC;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #FFFFFF;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1E88E5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    color: #78909C;
    font-size: 0.85em;
    margin-top: -5px;
}

.character-count {
    text-align: right;
    font-weight: 500;
}

/* Form Buttons */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-submit,
.btn-reset {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-submit {
    background: linear-gradient(135deg, #43A047 0%, #2E7D32 100%);
    color: #FFFFFF;
    flex: 1;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.3);
}

.btn-reset {
    background: linear-gradient(135deg, #CFD8DC 0%, #B0BEC5 100%);
    color: #263238;
}

.btn-reset:hover {
    background: linear-gradient(135deg, #B0BEC5 0%, #90A4AE 100%);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2em;
}

/* Comments Display Section */
.comments-display {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #E3F2FD;
    flex-wrap: wrap;
    gap: 15px;
}

.comments-header h3 {
    color: #1565C0;
    font-size: 1.6em;
    font-weight: 600;
}

.comment-count {
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    color: #FFFFFF;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    margin-left: 10px;
}

/* Sort Options */
.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    color: #546E7A;
    font-weight: 500;
}

.sort-select {
    padding: 8px 15px;
    border: 2px solid #CFD8DC;
    border-radius: 8px;
    background: #FFFFFF;
    color: #263238;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #1E88E5;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* No Comments State */
.no-comments {
    text-align: center;
    padding: 60px 20px;
    color: #78909C;
}

.no-comments-icon {
    font-size: 4em;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-comments p {
    font-size: 1.1em;
}

/* Individual Comment Card */
.comment-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    border: 2px solid #E8F5E9;
    border-left: 5px solid #43A047;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    animation: slideIn 0.4s ease-out;
}

.comment-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Comment Header */
.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.3);
}

.comment-author {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.comment-name {
    color: #1565C0;
    font-weight: 600;
    font-size: 1.1em;
}

.comment-date {
    color: #78909C;
    font-size: 0.85em;
}

/* Comment Actions */
.comment-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: #E3F2FD;
    border: 1px solid #1E88E5;
    color: #1565C0;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    background: #1E88E5;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.action-btn.liked {
    background: #43A047;
    color: #FFFFFF;
    border-color: #2E7D32;
}

.action-btn.disliked {
    background: #E53935;
    color: #FFFFFF;
    border-color: #C62828;
}

.action-btn.delete-btn {
    background: #FFEBEE;
    border-color: #E53935;
    color: #C62828;
}

.action-btn.delete-btn:hover {
    background: #E53935;
    color: #FFFFFF;
}

/* Comment Content */
.comment-content {
    color: #263238;
    line-height: 1.7;
    font-size: 1.05em;
    margin-bottom: 15px;
    padding-left: 60px;
}

/* Comment Footer */
.comment-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 60px;
    flex-wrap: wrap;
}

.like-dislike-container {
    display: flex;
    gap: 15px;
}

.like-count,
.dislike-count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #546E7A;
    font-weight: 600;
}

/* Replies Section */
.replies-section {
    margin-top: 20px;
    padding-left: 60px;
    border-left: 3px solid #E3F2FD;
}

.reply-card {
    background: #F8F9FA;
    border: 2px solid #E3F2FD;
    border-left: 4px solid #1E88E5;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.reply-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.reply-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reply-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #43A047 0%, #2E7D32 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1em;
}

.reply-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reply-name {
    color: #43A047;
    font-weight: 600;
    font-size: 1em;
}

.reply-date {
    color: #78909C;
    font-size: 0.8em;
}

.reply-content {
    color: #263238;
    line-height: 1.6;
    font-size: 0.95em;
}

/* Reply Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: #FFFFFF;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    color: #FFFFFF;
    padding: 20px 25px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4em;
}

.modal-close {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 2em;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

.reply-to-preview {
    background: #E8F5E9;
    border-left: 4px solid #43A047;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.reply-to-preview strong {
    color: #2E7D32;
    display: block;
    margin-bottom: 8px;
}

.reply-to-preview p {
    color: #263238;
    font-style: italic;
    margin: 0;
}

/* Success/Error Messages */
.message-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.message-alert.success {
    background: #C8E6C9;
    color: #1B5E20;
    border-left: 4px solid #43A047;
}

.message-alert.error {
    background: #FFCDD2;
    color: #C62828;
    border-left: 4px solid #E53935;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comments-section {
        padding: 25px 15px;
    }

    .comment-form-container,
    .comments-display {
        padding: 20px;
    }

    .comments-title {
        font-size: 1.8em;
    }

    .comments-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-submit,
    .btn-reset {
        width: 100%;
        justify-content: center;
    }

    .comment-content,
    .comment-footer,
    .replies-section {
        padding-left: 0;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
    }
}

/* Print Styles */
@media print {
    .comment-form-container,
    .action-btn,
    .modal {
        display: none;
    }

    .comment-card,
    .reply-card {
        page-break-inside: avoid;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #78909C;
}

.loading::after {
    content: "Loading comments...";
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
