* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: #f4f7fb;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.dashboard {
    max-width: 1400px;
    width: 100%;
}

/* Header */
.header {
    margin-bottom: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.header h1 {
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: -0.02em;
    color: #0b1a33;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header h1 i {
    color: #2a7de1;
    font-size: 2rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.header .badge-date {
    background: white;
    padding: 0.5rem 1.4rem;
    border-radius: 60px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e3a6b;
    border: 1px solid #e6edf4;
    white-space: nowrap;
}

.badge-date i {
    margin-right: 0.4rem;
    color: #2a7de1;
}

/* Language Toggle Button */
.lang-toggle {
    background: white;
    border: 1px solid #e6edf4;
    padding: 0.5rem 1.2rem;
    border-radius: 60px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #1e3a6b;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.lang-toggle i {
    font-size: 1.1rem;
    color: #2a7de1;
    transition: transform 0.6s ease;
}

.lang-toggle:hover {
    background: #f0f7ff;
    border-color: #b3cceb;
    box-shadow: 0 4px 12px rgba(42, 109, 219, 0.1);
}

.lang-toggle:hover i {
    transform: rotate(180deg);
}

.lang-toggle:active i {
    transform: rotate(360deg);
}

.lang-toggle .lang-label {
    transition: opacity 0.2s ease;
}

/* Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
    margin-top: 0.8rem;
}

/* Card */
.project-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 1.8rem 1.6rem 2rem;
    box-shadow: 0 12px 30px -8px rgba(0, 20, 40, 0.06);
    border: 1px solid #eef3f9;
    transition: transform 0.15s ease, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 30, 60, 0.12);
    border-color: #d6e2f0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.card-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.card-title-group h3 {
    font-weight: 600;
    font-size: 1.25rem;
    color: #0b1a33;
    letter-spacing: -0.01em;
}

.card-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    background: #ecf3fa;
    color: #1f4973;
    display: inline-block;
    width: fit-content;
    margin-top: 0.2rem;
}

.card-status-badge {
    background: #f0f5fe;
    padding: 0.25rem 0.8rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1f4f8a;
    white-space: nowrap;
    border: 1px solid #dae6f5;
}

.progress-section {
    margin: 1.4rem 0 1.6rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2a405c;
    margin-bottom: 0.4rem;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: #e7eef7;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3a86ff, #2a6edb);
    border-radius: 30px;
    transition: width 0.3s ease;
}

.progress-fill.high {
    background: linear-gradient(90deg, #2a7de1, #1b5bbf);
}

.progress-fill.medium {
    background: linear-gradient(90deg, #4b9eff, #2a7de1);
}

.progress-fill.low {
    background: linear-gradient(90deg, #7aa9ff, #4b8cff);
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
    justify-content: flex-start;
}

.btn {
    background: white;
    border: 1px solid #dce6f2;
    padding: 0.5rem 1rem;
    border-radius: 60px;
    font-weight: 500;
    font-size: 0.8rem;
    color: #1a3455;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
    background: #f9fcff;
}

.btn i {
    font-size: 0.8rem;
    color: #2a6edb;
}

.btn:hover {
    background: #eef5ff;
    border-color: #b3cceb;
    box-shadow: 0 4px 8px rgba(42, 109, 219, 0.08);
}

.btn-primary {
    background: #1f4f8a;
    border: 1px solid #1f4f8a;
    color: white;
}

.btn-primary i {
    color: white;
}

.btn-primary:hover {
    background: #143b69;
    border-color: #143b69;
}

.btn-outline {
    background: transparent;
    border: 1px solid #d0ddee;
}

.btn-outline i {
    color: #3f6b9e;
}

.btn-outline:hover {
    background: #eaf1fc;
}

.card-footer-note {
    margin-top: 1.2rem;
    font-size: 0.7rem;
    color: #607b9c;
    border-top: 1px solid #e9f0f7;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-footer-note i {
    margin-right: 0.2rem;
    color: #3e74b0;
}

/* Footer */
.footer-note {
    margin-top: 2.8rem;
    font-size: 0.85rem;
    color: #4b6990;
    text-align: center;
    border-top: 1px solid #e2ebf5;
    padding-top: 2rem;
}

.footer-note i {
    margin-right: 0.4rem;
}

/* Tag Variants */
.tag-company {
    background: #e0eaf9;
    color: #10335c;
}

.tag-requested {
    background: #e5effa;
    color: #1b4470;
}

.tag-waiting {
    background: #f3f0e8;
    color: #7a6a4b;
}

.tag-personal {
    background: #ebf2f0;
    color: #1b5e55;
}

/* Status Colors */
.status-green {
    background: #def1e6;
    color: #0e5842;
    border-color: #b6ddca;
}

.status-amber {
    background: #fff1d6;
    color: #8f6a2a;
    border-color: #f7dcb8;
}

.status-blue {
    background: #dce9fa;
    color: #1b4f82;
    border-color: #c0d6ef;
}

.status-gray {
    background: #edf2f7;
    color: #4d627b;
    border-color: #d4dfea;
}

@media (max-width: 700px) {
    .header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    
    .header-right {
        justify-content: space-between;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
}

/* Add these styles to the existing style.css */

/* Controls */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border: 1px solid #e6edf4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.filter-group label {
    font-weight: 500;
    color: #1e3a6b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-select {
    padding: 0.5rem 1.2rem;
    border-radius: 60px;
    border: 1px solid #dce6f2;
    background: #f9fcff;
    font-size: 0.9rem;
    color: #1a3455;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    min-width: 180px;
}

.filter-select:hover {
    border-color: #b3cceb;
}

.filter-select:focus {
    border-color: #2a7de1;
    box-shadow: 0 0 0 3px rgba(42, 125, 225, 0.1);
}

.btn-add-project {
    background: linear-gradient(135deg, #2a7de1, #1a5bbf);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(42, 125, 225, 0.25);
}

.btn-add-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 125, 225, 0.35);
    background: linear-gradient(135deg, #3a8df1, #2a6edb);
}

.btn-add-project i {
    color: white;
    font-size: 1.1rem;
}

/* Loading Spinner */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #607b9c;
    font-size: 1.1rem;
}

.loading-spinner i {
    font-size: 2rem;
    margin-right: 0.8rem;
    color: #2a7de1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.4rem;
    color: #0b1a33;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-header h2 i {
    color: #2a7de1;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #8a9bb0;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #1a3455;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #1e3a6b;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #dce6f2;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: #f9fcff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2a7de1;
    box-shadow: 0 0 0 3px rgba(42, 125, 225, 0.1);
}

.form-group input[type="number"] {
    width: 120px;
}

.form-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-secondary {
    background: #f0f4fa;
    border: 1px solid #dce6f2;
    color: #1a3455;
}

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

/* Delete button on cards */
.btn-delete {
    background: transparent;
    border: 1px solid #fee2e2;
    color: #dc2626;
}

.btn-delete:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.btn-delete i {
    color: #dc2626;
}

@media (max-width: 700px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select {
        width: 100%;
    }
}