/* Award-Winning Corporate UI - Professional Pastel Design */

:root {
    /* Primary Pastel Corporate Colors */
    --color-primary: #5B8DEE;
    --color-primary-light: #7BA5F3;
    --color-primary-dark: #4A7BD9;
    --color-secondary: #6C9BD1;
    --color-accent: #8EACCD;

    /* Pastel Status Colors */
    --color-success: #6BCF9F;
    --color-warning: #FFB84D;
    --color-danger: #FF8E8E;
    --color-info: #7EC8E3;

    /* Neutral Pastels */
    --color-gray-50: #FAFBFC;
    --color-gray-100: #F5F7FA;
    --color-gray-200: #E8ECF1;
    --color-gray-300: #D1D9E6;
    --color-gray-400: #B0BCC9;
    --color-gray-500: #8896A6;
    --color-gray-600: #6B7A8F;
    --color-gray-700: #4E5D73;
    --color-gray-800: #2E3A4D;
    --color-gray-900: #1A2332;

    /* Pastel Blue Shades */
    --color-blue-50: #F0F6FF;
    --color-blue-100: #E3EEFF;
    --color-blue-200: #C7DDFF;

    /* Pastel Red Shades */
    --color-red-50: #FFF5F5;
    --color-red-100: #FFE8E8;
    --color-red-200: #FFD1D1;

    /* Pastel Green Shades */
    --color-green-50: #F0FDF7;
    --color-green-100: #DFFAED;
    --color-green-200: #BFF5DB;

    /* Pastel Yellow Shades */
    --color-yellow-50: #FFFBF0;
    --color-yellow-100: #FFF4D6;
    --color-yellow-200: #FFE9AD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #F0F6FF 0%, #FAFBFC 100%);
    background-attachment: fixed;
    color: var(--color-gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

/* Status Badges - Professional Pastel */
.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.2s ease;
}

.bg-gray-100 {
    background: var(--color-gray-200);
}

.text-gray-800 {
    color: var(--color-gray-700);
}

.bg-blue-100 {
    background: var(--color-blue-100);
}

.text-blue-800 {
    color: var(--color-primary-dark);
}

.bg-red-100 {
    background: var(--color-red-100);
}

.text-red-800 {
    color: var(--color-danger);
}

.bg-green-100 {
    background: var(--color-green-100);
}

.text-green-800 {
    color: var(--color-success);
}

.bg-yellow-100 {
    background: var(--color-yellow-100);
}

.text-yellow-800 {
    color: var(--color-warning);
}

/* Progress Bar - Clean Corporate Style */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--color-gray-200);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 100px;
}

/* Cards - Clean Minimalist Design */
.card {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(46, 58, 77, 0.08), 0 1px 2px rgba(46, 58, 77, 0.04);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-gray-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 8px 24px rgba(46, 58, 77, 0.12), 0 2px 6px rgba(46, 58, 77, 0.06);
    transform: translateY(-2px);
}

.card-header {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Table Styles - Professional */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

thead {
    background: var(--color-gray-50);
}

th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gray-600);
    border-bottom: 2px solid var(--color-gray-200);
}

td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--color-gray-100);
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: var(--color-gray-50);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 768px) {

    .grid-cols-2,
    .grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* Buttons - Professional Corporate */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(91, 141, 238, 0.3);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 4px 12px rgba(91, 141, 238, 0.4);
}

.btn-danger {
    background: var(--color-danger);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 142, 142, 0.3);
}

.btn-danger:hover {
    background: #FF6B6B;
    box-shadow: 0 4px 12px rgba(255, 142, 142, 0.4);
}

.btn-secondary {
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    border: 1px solid var(--color-gray-300);
}

.btn-secondary:hover {
    background: var(--color-gray-200);
    border-color: var(--color-gray-400);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header - Clean Professional */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(46, 58, 77, 0.08);
    padding: 1.5rem 0;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-gray-900);
    letter-spacing: -0.02em;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--color-gray-50);
    border-radius: 12px;
}

/* Utilities */
.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-gray-600 {
    color: var(--color-gray-600);
}

.font-semibold {
    font-weight: 600;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-gray-700);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--color-gray-300);
    border-radius: 10px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(91, 141, 238, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 35, 50, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(46, 58, 77, 0.3);
}

.modal-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-gray-900);
}

/* Alert */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: var(--color-green-50);
    color: var(--color-success);
    border-color: var(--color-success);
}

.alert-error {
    background-color: var(--color-red-50);
    color: var(--color-danger);
    border-color: var(--color-danger);
}

/* Project Cards Enhancement */
.project-card {
    padding: 1.5rem;
    border: 1.5px solid var(--color-gray-200);
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: 0 4px 12px rgba(91, 141, 238, 0.1);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card-header {
        font-size: 1.125rem;
    }
}