/* UPDATED: 2025-12-11 - File actions bar reduced sizes */
:root {
    /* Grayscale Palette */
    --bg-body: #F5F5F7;
    /* Light Gray Background - Apple style */
    --bg-sidebar: #000000;
    --bg-card: #ffffff;

    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-on-dark: #f5f5f7;

    --accent-color: #000000;
    --accent-hover: #333333;

    --border-color: #d2d2d7;
    --border-light: #e6e6e6;

    --danger: #ff3b30;
    --success: #34c759;
    --warning: #ffcc00;
    --info: #007aff;
    --primary: #007aff;

    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-md: 12px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-primary);
    height: 100vh;
    height: 100dvh;
    /* Use dynamic viewport height for mobile */
    overflow: hidden;
}

#app {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

/* --- Login View --- */
.login-container {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
    padding: 1rem;
    flex: 1;
}

.login-box {
    width: 100%;
    max-width: 420px;
    padding: 3rem 2.5rem;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-brand {
    margin-bottom: 2.5rem;
}

.login-brand h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    display: block;
    margin-bottom: 1rem;
}

.product-tag {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-group {
    margin-bottom: 1.75rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 1.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.login-footer {
    margin-top: 2.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Main Layout --- */
.app-container {
    display: flex;
    height: 100%;
    width: 100%;
    overflow: hidden;
    /* Prevent double scrollbars */
    flex-direction: row;
}

/* Sidebar */
.sidebar {
    width: 260px;
    height: 100%;
    background-color: var(--bg-sidebar);
    color: var(--text-on-dark);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    flex-shrink: 0;
    /* Prevent sidebar from shrinking */
    overflow-y: auto;
    /* Allow sidebar to scroll if content is too tall */
}

.brand {
    margin-bottom: 2rem;
}

.brand-text h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.badge-role {
    font-size: 0.6rem;
    background: #333;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    color: #888;
}

.brand-sub {
    color: #666;
    font-size: 0.8rem;
    margin-top: 4px;
}

.user-mini-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
    margin-bottom: 1.5rem;
}

.user-mini-profile .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
}

#current-user-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.user-mini-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.profile-link {
    font-size: 0.75rem;
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.profile-link:hover {
    color: var(--primary);
}

.logout-link {
    font-size: 0.75rem;
    color: #888;
    text-decoration: none;
}

.logout-link:hover {
    color: #fff;
}

/* Logout button for tablets - hidden by default */
.sidebar-logout-tablet {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid #333;
    margin-top: auto;
}

.logout-link-tablet {
    display: none;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    align-items: center;
    gap: 12px;
}

.logout-link-tablet:hover {
    background-color: #222;
    color: #fff;
}

.profile-link-tablet {
    display: none;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    align-items: center;
    gap: 12px;
}

.profile-link-tablet:hover {
    background-color: #222;
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #999;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links li.active a,
.nav-links li a:hover,
.nav-links a.active {
    background-color: #222;
    color: #fff;
    transform: translateX(4px);
}

/* Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-body);
}

.top-bar {
    min-height: 70px;
    background-color: #fff;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.breadcrumbs {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    padding: 0;
    margin: 0;
    text-align: left;
}

.search-container {
    flex: 1;
    max-width: 400px;
    min-width: 200px;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: inherit;
}

#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 1000;
}

.actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}

.content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* UI Elements */
.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    /* More square professional look */
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
}

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

/* Tables & Lists */
.table-container {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    overflow-x: auto;
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
}

/* Calendar Timeline View */
.calendar-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calendar-timeline-row {
    display: contents;
}

.calendar-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    grid-column: 1 / -1;
}

.calendar-timeline-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Outfit';
}

.calendar-timeline-header .btn-group {
    display: flex;
    gap: 0.5rem;
}

.calendar-day-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 150px;
    display: flex;
    flex-direction: column;
}

.calendar-day-card.calendar-day-empty {
    background: transparent;
    border: none;
    cursor: default;
}

.calendar-day-card:hover:not(.calendar-day-empty) {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day-card.today {
    border-color: var(--primary);
    background: #f0f7ff;
}

.calendar-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.calendar-day-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.calendar-day-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.calendar-events {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calendar-event-item {
    padding: 0.5rem;
    background: #f5f5f5;
    border-left: 3px solid;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-event-item:hover {
    background: #efefef;
}

.calendar-event-item.done {
    opacity: 0.6;
    text-decoration: line-through;
}

.calendar-event-item.late {
    background: #fff5f5;
    border-left-color: #ff3b30 !important;
}

.calendar-timeline-row {
    display: contents;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
}

th {
    text-align: left;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    background: #fafafa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
    vertical-align: middle;
}

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

tbody tr:hover {
    background-color: #fafafa;
}

tbody tr:last-child td {
    border-bottom: none;
}

.project-row {
    cursor: pointer;
}

.project-row td:first-child {
    font-weight: 500;
}

.project-row td:first-child > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-row td:first-child span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Status Labels */
.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.status.active {
    background: #d4edda;
    color: #155724;
}

.status.paused {
    background: #fff8c5;
    color: #856404;
}

.status.completed {
    background: #f0f6fc;
    color: #0969da;
}

.status.inactive {
    background: #f5f5f5;
    color: #666;
}

/* Table Actions Column */
td:last-child {
    text-align: right;
    padding-right: 16px;
}

td:last-child .btn-icon {
    margin-left: 8px;
}

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

.modal {
    background: #fff;
    width: min(100%, 640px);
    max-width: 900px;
    margin: 0 1rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalSlide 0.3s ease-out;
    max-height: 95vh;
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.modal-header .close-modal {
    align-self: flex-start;
    padding: 0.35rem 0.5rem;
}

.modal-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-body {
    padding: 1.5rem;
    max-height: 85vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-body form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-body .question-answer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.modal-body .question-answer label {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.modal-body .answer-input,
.modal-body textarea,
.modal-body select {
    width: 100%;
}

@media (max-width: 768px) {
    .modal {
        width: 95%;
        max-width: none;
        margin: 0 0.5rem;
        border-radius: 14px;
    }

    .modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .modal-header h3 {
        width: 100%;
        font-size: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-body form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .modal-body .question-answer {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-body .question-answer label {
        font-size: 0.9rem;
    }

    .modal-body .question-answer .answer-input {
        width: 100%;
    }

    .modal-header .close-modal {
        align-self: flex-end;
    }
}

@media (max-width: 640px) {
    .modal {
        width: calc(100% - 1rem);
        margin: 0 0.5rem;
    }

    .modal-header {
        padding: 0.75rem 1rem;
    }

    .modal-body {
        padding: 0.75rem 1rem;
        gap: 1rem;
    }

    .modal-body form {
        gap: 0.75rem;
    }

    .modal-body .question-answer {
        gap: 0.25rem;
    }

    .modal-body .question-answer label {
        font-size: 0.85rem;
    }

    .modal-body .answer-input,
    .modal-body textarea,
    .modal-body select {
        font-size: 0.95rem;
    }
}

/* --- Project View --- */
.project-header {
    background: #fff;
    padding: 2rem;
    border-bottom: 1px solid var(--border-light);
    margin: -2rem -2rem 2rem -2rem;
    /* Bleed to edges */
}

.project-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-meta i {
    width: 20px;
    text-align: center;
}

/* Modules & Deliverables */
.module-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.module-header {
    background: #fafafa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.module-private-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ff3b30;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.module-private-badge i {
    font-size: 0.7rem;
}

.btn-module-privacy {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-module-privacy:hover {
    background: #f5f5f7;
    border-color: var(--accent-color);
}

.btn-module-privacy:active {
    background: #eeeeee;
}

.btn-edit-module,
.btn-delete-module {
    background: transparent;
    border: 1px solid var(--border-light);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit-module {
    color: #007aff;
}

.btn-delete-module {
    color: #ff3b30;
}

.btn-edit-module:hover {
    background: #e8f4ff;
    border-color: #007aff;
}

.btn-delete-module:hover {
    background: #ffe8e8;
    border-color: #ff3b30;
}

.btn-edit-module:active,
.btn-delete-module:active {
    background: #f0f0f0;
}

.module-card[data-is-private="true"],
.module-card[data-is-private="1"] {
    border-left: 3px solid #ff3b30;
}

.deliverable-list {
    list-style: none;
}

.deliverable-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.1s;
    cursor: pointer;
}

.deliverable-item:last-child {
    border-bottom: none;
}

.deliverable-item:hover {
    background-color: #f5f5f7;
}

.del-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.del-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    gap: 12px;
}

.del-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* --- Deliverable Detail & Comments --- */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.detail-layout .detail-sidebar {
    grid-column: 2;
}

/* When sidebar exists, restore 2-column layout */
.detail-layout:has(.detail-sidebar) {
    grid-template-columns: 2fr 1fr;
}

.detail-main {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}

.detail-sidebar {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    /* padding: 1.5rem;  <-- Removed to control padding in children */
    height: 100%;
    /* Fill the grid height */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.file-area-container {
    flex: 0 0 auto;
    height: 400px;
    overflow: hidden;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
}

/* Comments Section */
.comments-feed {
    height: 360px !important;
    max-height: 360px !important;
    overflow-y: auto !important;
    padding: 1rem;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

.comment-bubble {
    display: flex;
    gap: 1rem;
    max-width: 85%;
    flex-shrink: 0;
    min-height: 0;
}

.comment-bubble.own {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.c-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ddd;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.c-content {
    background: #fff;
    padding: 1rem;
    border-radius: 0 12px 12px 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
}

.comment-bubble.own .c-content {
    border-radius: 12px 0 12px 12px;
    background: #E8F5FF;
    /* Light blue for owner */
    border-color: #cce5ff;
}

.c-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    gap: 1rem;
}

.c-status-badge {
    position: absolute;
    top: -10px;
    right: -5px;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: var(--shadow-sm);
}

.c-status-badge.pending {
    background: #FFF3CD;
    color: #856404;
    border-color: #FFEEBA;
}

.c-status-badge.progress {
    background: #D1ECF1;
    color: #0C5460;
    border-color: #BEE5EB;
}

.c-status-badge.done {
    background: #D4EDDA;
    color: #155724;
    border-color: #C3E6CB;
}

.c-status-badge.rejected {
    background: #F8D7DA;
    color: #721C24;
    border-color: #F5C6CB;
}

.c-body {
    font-size: 0.95rem;
    line-height: 1.5;
}

.comment-input-area {
    padding: 1rem;
    background: #fff;
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
}

/* --- Calendar Views --- */
.calendar-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--border-light);
    gap: 1px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cal-header-cell {
    background: #fafafa;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cal-day-cell {
    background: #fff;
    min-height: 120px;
    padding: 8px;
    position: relative;
    transition: background 0.1s;
}

.cal-day-cell:hover {
    background: #fafafa;
}

.cal-day-num {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
}

.cal-day-cell.today .cal-day-num {
    background: #000;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-day-cell.empty {
    background: #fcfcfc;
}

.cal-event {
    background: #E8F5FF;
    color: #007aff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-bottom: 4px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-left: 2px solid #007aff;
}

.cal-event.deadline {
    background: #FFF3CD;
    color: #856404;
    border-left-color: #ffb020;
}

/* --- File Upload & List --- */
.file-dropzone {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.2s;
}

.file-dropzone:hover {
    border-color: var(--accent-color);
    background: #fafafa;
    color: var(--text-primary);
}

.file-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.file-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    pointer-events: none;
}

.file-preview-card {
    position: relative;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.file-actions-bar {
    display: flex !important;
    justify-content: center !important;
    gap: 0.1rem !important;
    padding: 0.1rem !important;
    background: #f9f9f9 !important;
    border-top: 1px solid #eee !important;
    flex-shrink: 1 !important;
}

.file-actions-bar .btn-icon {
    padding: 0.2rem 0.3rem !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    font-size: 0.65rem !important;
    min-width: 28px !important;
    text-align: center !important;
}

.file-actions-bar .btn-icon:hover {
    background: #f0f0f0 !important;
    border-color: #999 !important;
}

.file-name-caption {
    text-align: right;
    color: #999;
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
    margin-top: 0;
    flex-shrink: 0;
}

.preview-image-container {
    width: 100%;
    flex: 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.preview-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.file-icon {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.file-info {
    flex: 1;
    overflow: hidden;
}

.file-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 3px;
    background: #eef2ff;
    color: var(--text-primary);
    border-left: 3px solid var(--primary);
    cursor: pointer;
    transition: transform 0.15s;
}

.cal-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cal-event.done {
    text-decoration: line-through;
    opacity: 0.6;
}

.cal-event.late {
    background: #fff5f5 !important;
    border-left-color: #ff3b30 !important;
    color: #c92a2a;
}

.file-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.file-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 8px 10px;
    transition: all 0.2s ease;
    border-radius: 6px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    color: var(--text-primary);
    background: #f0f0f0;
}

/* --- Project Cards (Grid View) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-hover);
}

.p-card-header {
    height: 120px;
    background: linear-gradient(135deg, #1d1d1f, #434344);
    position: relative;
    padding: 1.5rem;
    color: #fff;
    display: flex;
    align-items: flex-end;
}

.p-card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.p-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.p-card-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

/* Comment Status Badges */
.c-status-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    position: absolute;
    top: -10px;
    right: -5px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: var(--shadow-sm);
}

.c-status-badge.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffecb5;
}

.c-status-badge.in_progress {
    background: #cce5ff;
    color: #004085;
}

.c-status-badge.progress {
    background: #D1ECF1;
    color: #0C5460;
    border-color: #BEE5EB;
}

.c-status-badge.done {
    background: #d4edda;
    color: #155724;
    border: 1px solid #badbcc;
}

.c-status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.c-status-badge.approved {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.c-status-badge.changes_requested {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffecb5;
}

.p-status-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: #eee;
    color: #666;
    margin-bottom: 0.5rem;
}

.p-status-badge.active {
    background: #E8F5E9;
    color: #2E7D32;
}

.p-status-badge.paused {
    background: #FFF3E0;
    color: #EF6C00;
}

.p-progress-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: auto;
}

.p-progress-fill {
    height: 100%;
    background: var(--success);
    width: 0%;
    /* Dynamic */
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablets (768px to 1024px) */
/* ===== SIDEBAR TOGGLE BUTTON (MOBILE) ===== */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 999;
    width: 44px;
    height: 44px;
    background: var(--bg-sidebar);
    color: var(--text-on-dark);
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:active {
    background: #333;
}

/* ===== BOTTOM NAVIGATION (MOBILE) ===== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--bg-sidebar);
    border-top: 1px solid #333;
    justify-content: space-around;
    align-items: center;
    z-index: 99;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-on-dark);
    text-decoration: none;
    font-size: 0.7rem;
    gap: 4px;
    padding: 0.5rem;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
    border-top: 2px solid transparent;
}

.bottom-nav a:active,
.bottom-nav a.active {
    border-top-color: var(--info);
    color: var(--info);
}

.bottom-nav a.logout-link {
    border-top-color: #ff3b30;
    color: #ff3b30;
}

.bottom-nav i {
    font-size: 1.3rem;
}

/* ===== TABLET (768px - 1024px) ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: 70px;
        padding: 1rem 0;
    }

    .brand {
        margin-bottom: 1rem;
        display: flex;
        justify-content: center;
    }

    .brand-text h2,
    .brand-sub,
    .user-mini-profile,
    .badge-role {
        display: none;
    }

    .user-mini-profile {
        display: none;
    }

    .nav-links {
        gap: 0.25rem;
    }

    .nav-links li a {
        padding: 1rem 0;
        justify-content: center;
        font-size: 0;
    }

    .nav-links li a i {
        font-size: 1.3rem;
        margin: 0;
    }

    .nav-links li a.active {
        background: #333;
        border-radius: 8px;
    }

    /* Logout and Profile buttons for tablet */
    .sidebar-logout-tablet {
        display: flex;
        flex-direction: column;
        gap: 8px;
        justify-content: center;
        padding: 1rem 0;
        border-top: 1px solid var(--border-color);
        margin-top: auto;
    }

    .profile-link-tablet {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.75rem;
        color: var(--text-secondary);
        text-decoration: none;
        border-radius: var(--radius-sm);
        transition: all 0.2s ease;
        font-size: 0.85rem;
    }

    .profile-link-tablet span {
        display: none;
    }

    .profile-link-tablet i {
        font-size: 1.3rem;
        margin: 0;
    }

    .profile-link-tablet:hover {
        background-color: #222;
        color: var(--primary);
    }

    .logout-link-tablet {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.75rem;
        color: var(--text-secondary);
        text-decoration: none;
        border-radius: var(--radius-sm);
        transition: all 0.2s ease;
        font-size: 0.85rem;
    }

    .logout-link-tablet span {
        display: none;
    }

    .logout-link-tablet i {
        font-size: 1.3rem;
        margin: 0;
    }

    .logout-link-tablet:hover {
        background-color: #222;
        color: #ff3b30;
    }

    .logout-link-tablet i {
        font-size: 1.3rem;
        margin: 0;
    }

    .logout-link-tablet:hover {
        background: rgba(255, 59, 48, 0.1);
        color: #ff3b30;
    }

    .top-bar {
        padding: 1rem;
        gap: 0.75rem;
    }

    .breadcrumbs {
        font-size: 1rem;
    }

    .search-container {
        max-width: 300px;
    }

    .detail-layout {
        flex-direction: column;
    }

    .detail-main,
    .detail-sidebar {
        width: 100%;
    }

    .detail-sidebar {
        border-left: none;
        border-top: 1px solid var(--border-color);
        /* padding-top: 1rem; */
    }
}


/* ===== MOBILE (max 768px) ===== */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .app-container {
        flex-direction: column;
    }

    .sidebar-toggle {
        display: none;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 260px;
        height: 100vh;
        height: 100dvh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 998;
        padding: 1rem;
        overflow-y: auto;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        margin-bottom: 70px;
        flex: 1;
        overflow-y: auto;
    }

    .bottom-nav {
        display: flex;
    }

    .top-bar {
        padding: 0.75rem;
        gap: 0.5rem;
        margin-top: 3.5rem;
        flex-direction: column;
        align-items: stretch;
    }

    .breadcrumbs {
        font-size: 1.1rem;
        text-align: center;
    }

    .search-container {
        max-width: 100%;
        width: 100%;
    }

    .search-container input {
        font-size: 16px;
        padding: 10px 12px;
    }

    .actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .detail-layout {
        flex-direction: column;
    }

    .detail-main,
    .detail-sidebar {
        width: 100%;
        max-width: 100%;
    }

    .detail-sidebar {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-top: 1rem;
    }

    .header {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    .form-row {
        flex-direction: column;
    }

    .form-row > * {
        width: 100% !important;
    }

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

    .btn-group button {
        width: 100%;
    }

    .table {
        font-size: 0.85rem;
    }

    th,
    td {
        padding: 0.75rem 0.5rem;
    }

    .project-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .project-card h3 {
        font-size: 1rem;
    }

    .file-preview-card {
        padding: 0.75rem;
    }

    /* File actions layout: 3 equal columns with icons only */
    .file-preview-card .file-actions-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.2rem !important;
        flex-wrap: nowrap !important;
        padding: 0.2rem !important;
    }

    .file-preview-card .file-actions-bar .btn-icon {
        padding: 0.3rem 0.4rem !important;
        font-size: 0.75rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        min-width: 32px !important;
        height: auto !important;
    }

    /* Table responsive */
    .table-container {
        overflow-x: auto;
        margin-bottom: 1rem;
    }

    table {
        font-size: 0.85rem;
        min-width: 500px;
    }

    th {
        padding: 12px 10px;
        font-size: 0.75rem;
    }

    td {
        padding: 12px 10px;
    }

    td:last-child {
        padding-right: 8px;
    }

    .status {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .btn-icon {
        padding: 6px 8px;
        font-size: 0.9rem;
        min-width: 32px;
        min-height: 32px;
    }

    /* Override for file actions bar - ensure 3 columns on all screen sizes */
    .file-preview-card .file-actions-bar {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        flex-wrap: nowrap !important;
        padding: 0.2rem;
    }

    .file-preview-card .file-actions-bar .btn-icon {
        padding: 0.3rem 0.4rem !important;
        font-size: 0.75rem !important;
        min-width: 32px !important;
        height: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
    }
}



/* ===== MOBILE (max 768px) ===== */
@media (max-width: 768px) {
    /* Estilos móviles generales aquí (no tablas, que están en responsive.css) */
}

/* ===== SMALL PHONES (max 480px) ===== */
@media (max-width: 480px) {
    .sidebar {
        width: 240px;
    }

    .sidebar-toggle {
        top: 0.5rem;
        left: 0.5rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .main-content {
        margin-bottom: 60px;
    }

    .bottom-nav {
        height: 60px;
    }

    .bottom-nav a {
        font-size: 0.6rem;
        gap: 2px;
    }

    .bottom-nav i {
        font-size: 1.2rem;
    }

    .top-bar {
        padding: 0.5rem;
        margin-top: 3.5rem;
        gap: 0.5rem;
    }

    .breadcrumbs {
        font-size: 1rem;
    }

    .search-container input {
        font-size: 16px;
        padding: 10px;
    }

    .login-box {
        padding: 2rem 1.5rem;
        max-width: 100%;
        margin: 0 1rem;
        border-radius: 12px;
    }

    .login-brand h1 {
        font-size: 2.2rem;
        margin-bottom: 0.3rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .product-tag {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

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

    .form-group input {
        padding: 12px 12px;
        font-size: 16px;
    }

    .btn-block {
        padding: 13px;
        font-size: 0.95rem;
    }

    .login-footer {
        font-size: 0.8rem;
        margin-top: 1.5rem;
    }

    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.25rem !important;
    }

    h3 {
        font-size: 1rem !important;
    }

    input,
    textarea,
    select {
        font-size: 16px !important;
        min-height: 44px;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        min-height: 44px;
    }

    .modal {
        margin: 0.5rem;
        width: calc(100% - 1rem);
    }

    .project-card {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .p-name {
        font-size: 0.95rem;
    }

    .p-meta {
        font-size: 0.7rem;
    }

    table {
        font-size: 0.75rem;
    }

    th,
    td {
        padding: 0.5rem 0.3rem;
    }
}

/* ===== EXTRA SMALL (max 360px) ===== */
@media (max-width: 360px) {
    .sidebar {
        width: 100%;
        max-width: 220px;
    }

    .login-box {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
        border-radius: 10px;
    }

    .login-brand h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .product-tag {
        font-size: 0.6rem;
        padding: 4px 10px;
    }

    .form-group input {
        font-size: 16px;
    }

    .top-bar {
        margin-top: 3rem;
        padding: 0.5rem;
    }

    .breadcrumbs {
        font-size: 0.95rem;
    }

    .search-container {
        order: 3;
        margin-top: 0.25rem;
    }

    .actions {
        flex-wrap: wrap;
        order: 2;
    }

    .project-card {
        padding: 0.5rem;
    }

    .bottom-nav a {
        font-size: 0.5rem;
    }

    h1 {
        font-size: 1.3rem !important;
    }

    h2 {
        font-size: 1.1rem !important;
    }

    h3 {
        font-size: 0.9rem !important;
    }

    /* Hide tablet logout button on mobile */
    .sidebar-logout-tablet {
        display: none !important;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-height: 600px) and (orientation: landscape) {
    .sidebar {
        height: 100vh;
        overflow-y: auto;
    }

    .main-content {
        overflow-y: auto;
        max-height: calc(100vh - 60px);
    }

    .bottom-nav {
        height: 50px;
    }

    .bottom-nav a {
        font-size: 0.6rem;
        gap: 2px;
    }

    .top-bar {
        padding: 0.5rem;
    }
}
/* Dashboard Grid */
.dashboard-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* User Selection List (Developers) */
.user-selection-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: #fafafa;
}

.user-selection-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.15s ease;
    user-select: none;
}

.user-selection-item:hover {
    background-color: #f0f0f0;
}

.user-selection-item input[type="checkbox"] {
    cursor: pointer;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.user-selection-item span {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* User Profile Styles */
.profile-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.profile-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0;
}

.role-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.role-admin {
    background-color: #ff3b30;
    color: white;
}

.role-badge.role-developer {
    background-color: #007aff;
    color: white;
}

.role-badge.role-client {
    background-color: #34c759;
    color: white;
}

.role-badge.role-superadmin {
    background-color: #ff9500;
    color: white;
}

.profile-content {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 0;
    box-shadow: var(--shadow-md);
}

.profile-tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border-light);
    gap: 0;
    background-color: transparent;
}

.profile-tab-btn {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-family: var(--font-main);
}

.profile-tab-btn:hover {
    color: var(--text-primary);
    border-bottom-color: var(--border-light);
}

.profile-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.profile-tabs-content {
    padding: 30px;
}

.profile-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.profile-tab-pane.active {
    display: block;
}

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

.nav-tabs {
    border-bottom: 2px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-tabs .nav-link:hover {
    color: var(--text-primary);
    border-bottom-color: var(--border-light);
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    animation: fadeIn 0.3s ease-in;
}

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

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-group input:disabled {
    background-color: #f5f5f7;
    color: var(--text-secondary);
    cursor: not-allowed;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-info {
    background-color: #d1e7ff;
    color: #0051ba;
    border-left: 4px solid #0051ba;
}

.alert-danger {
    background-color: #ffe6e6;
    color: #c5192d;
    border-left: 4px solid #c5192d;
}

.alert-success {
    background-color: #d1f4d1;
    color: #006618;
    border-left: 4px solid #006618;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background-color: #0051ba;
    box-shadow: 0 4px 8px rgba(0, 122, 255, 0.3);
}

.btn-secondary {
    background-color: var(--border-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    font-family: var(--font-main);
}

.btn-secondary:hover {
    background-color: #e6e6e6;
    border-color: #c2c2c7;
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#add-question-btn {
    width: 100%;
    margin-top: 0.5rem;
}

#add-question-btn i {
    font-size: 1rem;
}

