/* Modern Color Palette - Green Theme */
:root {
    --primary-color: #10b981;
    --primary-hover: #059669;
    --primary-dark: #047857;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --background: #f8fafc;
    --card-background: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
}

.container, .container-fluid {
    padding-top: 1.5rem;
    max-width: 100%;
}

/* Modern Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    background: var(--card-background);
    transition: all 0.3s ease;
}

    .card:hover {
        box-shadow: var(--shadow-lg);
    }

.card-body {
    padding: 1.5rem;
}

/* Modern Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }

.btn-success {
    background: var(--success-color);
    color: white;
}

    .btn-success:hover {
        background: #059669;
        transform: translateY(-1px);
    }

.btn-warning {
    background: var(--warning-color);
    color: white;
}

    .btn-warning:hover {
        background: #d97706;
    }

.btn-danger {
    background: var(--danger-color);
    color: white;
}

    .btn-danger:hover {
        background: #dc2626;
    }

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

    .btn-secondary:hover {
        background: #475569;
    }

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

    .btn-outline-primary:hover {
        background: var(--primary-color);
        color: white;
    }

.btn-outline-secondary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

    .btn-outline-secondary:hover {
        background: var(--secondary-color);
        color: white;
    }

.btn-outline-success {
    border: 2px solid var(--success-color);
    color: var(--success-color);
    background: transparent;
}

    .btn-outline-success:hover {
        background: var(--success-color);
        color: white;
    }

/* Modern Form Styles */
.form-control {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.form-select,
select.form-control {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    line-height: 1.4;
    height: auto;
    appearance: none;
    background-position: right 1rem center;
    background-repeat: no-repeat;
}

    .form-control:focus, .form-select:focus, select.form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
        outline: none;
    }

textarea.form-control {
    resize: vertical;
}

label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Modern Table Styles */
.table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

    .table thead th {
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
        border: none;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.05em;
        color: var(--text-secondary);
        padding: 0.875rem;
    }

    .table tbody td {
        padding: 0.875rem;
        vertical-align: middle;
        border-color: var(--border-color);
        font-size: 0.875rem;
    }

    .table tbody tr {
        transition: background-color 0.2s ease;
    }

        .table tbody tr:hover {
            background-color: #f8fafc;
        }

/* Modern Header Styles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-primary);
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.125rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.625rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

/* Modern Navigation */
.navbar {
    background: white !important;
    box-shadow: var(--shadow-sm);
    padding: 0.875rem 0;
}

.navbar-brand img {
    transition: transform 0.2s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary) !important;
    transition: color 0.2s ease;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem;
}

    .nav-link:hover {
        color: var(--primary-color) !important;
    }

/* Filter Section Modern Style */
.filter-section {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.filter-row {
    display: flex;
    gap: 0.875rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .filter-group label {
        margin-bottom: 0;
    }

/* Comments Section Modern Style */
.comments-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.875rem;
    max-width: 300px;
}

.comment {
    background: white;
    padding: 0.625rem;
    margin-bottom: 0.625rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

    .comment:last-child {
        margin-bottom: 0;
    }

.comment-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .comment-meta strong {
        color: var(--primary-color);
    }

.comment-text {
    font-size: 0.875rem;
    line-height: 1.5;
}

.comment-form {
    margin-top: 0.875rem;
}

    .comment-form .input-group {
        border-radius: 8px;
        overflow: hidden;
    }

/* Action Buttons Modern Style */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Status Badge Styles */
.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.75rem;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-completed {
    background: #d1fae5;
    color: #065f46;
}

/* Footer Modern Style */
.footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 0;
    margin-top: 2.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 1.125rem;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .table {
        font-size: 0.8125rem;
    }

        .table thead th {
            font-size: 0.6875rem;
            padding: 0.75rem 0.5rem;
        }

        .table tbody td {
            padding: 0.75rem 0.5rem;
        }

    .card-body {
        padding: 1.25rem;
    }

    .btn {
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
    }

    .nav-link {
        font-size: 0.8125rem;
    }

    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }

    .container, .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 12px;
    }

    h1 {
        font-size: 1.375rem;
    }

    h2 {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .form-control {
        font-size: 0.8125rem;
    }

    .table {
        font-size: 0.75rem;
    }

        .table thead th {
            font-size: 0.625rem;
        }

    .comment-text {
        font-size: 0.8125rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .table {
    animation: fadeIn 0.3s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--secondary-color);
    }
