/* ============================================
   VARIABLES DE COLOR - Rojo, Blanco, Negro
   ============================================ */
:root {
    --primary-red: #DC143C;
    --primary-red-dark: #B8102E;
    --primary-red-light: #FF1744;
    --accent-red: #FF4757;

    --black: #000000;
    --dark-gray: #1A1A1A;
    --medium-gray: #2D2D2D;
    --light-gray: #404040;

    --white: #FFFFFF;
    --off-white: #F5F5F5;
    --light-white: #FAFAFA;

    --success: #00C853;
    --warning: #FFB300;
    --error: #D32F2F;

    --shadow: rgba(0, 0, 0, 0.15);
    --shadow-hover: rgba(0, 0, 0, 0.25);
}

/* ============================================
   RESET Y BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--light-white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Material Icons */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    vertical-align: middle;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 260px;
    background: var(--black);
    color: var(--white);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px var(--shadow);
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid var(--medium-gray);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

.logo .fluent-icon {
    font-size: 32px;
    color: var(--primary-red);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: var(--off-white);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--dark-gray);
    color: var(--white);
    border-left-color: var(--primary-red);
}

.nav-item.active {
    background: var(--dark-gray);
    color: var(--white);
    border-left-color: var(--primary-red);
}

.nav-item .fluent-icon {
    font-size: 24px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--medium-gray);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--off-white);
    margin-bottom: 15px;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    color: var(--off-white);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-logout:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

.btn-logout .material-icons {
    font-size: 20px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    padding: 0;
}

/* ============================================
   TOP HEADER
   ============================================ */
.top-header {
    background: var(--white);
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E0E0E0;
    box-shadow: 0 2px 4px var(--shadow);
}

.header-left h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 5px;
}

.subtitle {
    color: var(--light-gray);
    font-size: 14px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--off-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: scale(1.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--light-white);
    border-radius: 20px;
    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 30px 40px;
}

.stat-card-modern {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.stat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-hover);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.stat-icon.total {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    color: var(--white);
}

.stat-icon.progress {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    color: var(--white);
}

.stat-icon.completed {
    background: linear-gradient(135deg, var(--success) 0%, #00E676 100%);
    color: var(--white);
}

.stat-icon.failed {
    background: linear-gradient(135deg, var(--error) 0%, #FF1744 100%);
    color: var(--white);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--light-gray);
    font-weight: 500;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--black);
    transition: all 0.3s ease;
}

.stat-value.updated {
    animation: pulse-value 0.5s ease;
}

@keyframes pulse-value {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); color: var(--primary-red); }
    100% { transform: scale(1); }
}

/* ============================================
   CONTENT GRID
   ============================================ */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 0 40px 30px 40px;
}

.left-column, .right-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ============================================
   CARDS
   ============================================ */
.card-modern {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 12px var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
}

.card-modern:hover {
    box-shadow: 0 8px 20px var(--shadow-hover);
}

.card-modern.full-width {
    margin: 0 40px 30px 40px;
}

.card-header-modern {
    padding: 25px 30px;
    border-bottom: 1px solid var(--off-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title .fluent-icon {
    font-size: 24px;
    color: var(--primary-red);
}

.card-title h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.card-body {
    padding: 30px;
}

/* ============================================
   FORMS
   ============================================ */
.form-group-modern {
    margin-bottom: 20px;
}

.form-group-modern label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--black);
    font-size: 14px;
}

.form-group-modern label .fluent-icon {
    font-size: 18px;
    color: var(--primary-red);
}

.input-modern {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background: var(--white);
}

.input-modern:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.input-small {
    padding: 10px 14px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    width: 100px;
}

.input-small:focus {
    outline: none;
    border-color: var(--primary-red);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-modern .fluent-icon {
    font-size: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 20, 60, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--off-white);
    color: var(--black);
    border: 2px solid #E0E0E0;
}

.btn-secondary:hover {
    background: var(--light-white);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #00E676 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 200, 83, 0.4);
}

.btn-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-red);
    text-decoration: none;
    padding: 10px 0;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-link-modern:hover {
    color: var(--primary-red-dark);
    gap: 12px;
}

/* ============================================
   UPLOAD AREA
   ============================================ */
.upload-area-modern {
    border: 3px dashed #D0D0D0;
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background: var(--light-white);
}

.upload-area-modern:hover,
.upload-area-modern.drag-over {
    border-color: var(--primary-red);
    background: rgba(220, 20, 60, 0.05);
}

.upload-icon-modern {
    font-size: 72px;
    margin-bottom: 20px;
    color: var(--primary-red);
}

.upload-icon-modern .fluent-icon {
    font-size: 72px;
}

.upload-area-modern h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.upload-area-modern p {
    color: var(--light-gray);
    margin-bottom: 20px;
}

.file-info-modern {
    background: var(--light-white);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.file-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.file-info-item .fluent-icon {
    color: var(--primary-red);
    font-size: 24px;
}

.file-info-item strong {
    color: var(--black);
}

.file-info-item span {
    color: var(--light-gray);
}

/* ============================================
   DELAY CONTROL
   ============================================ */
.delay-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.delay-control label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--black);
}

.delay-control .fluent-icon {
    color: var(--primary-red);
}

/* ============================================
   TABLES
   ============================================ */
.table-container-modern {
    overflow-x: auto;
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern thead {
    background: var(--black);
    color: var(--white);
}

.table-modern th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.table-modern th .fluent-icon {
    font-size: 16px;
    margin-right: 6px;
    vertical-align: middle;
}

.table-modern td {
    padding: 16px;
    border-bottom: 1px solid var(--off-white);
    color: var(--black);
}

.table-modern tbody tr {
    transition: all 0.2s;
}

.table-modern tbody tr:hover {
    background: var(--light-white);
}

.empty-state {
    text-align: center;
    padding: 60px 20px !important;
    color: var(--light-gray);
}

.empty-state .fluent-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.empty-state p {
    font-size: 16px;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.status-pending {
    background: rgba(255, 179, 0, 0.15);
    color: var(--warning);
}

.status-calling {
    background: rgba(220, 20, 60, 0.15);
    color: var(--primary-red);
}

.status-completed {
    background: rgba(0, 200, 83, 0.15);
    color: var(--success);
}

.status-failed {
    background: rgba(211, 47, 47, 0.15);
    color: var(--error);
}

/* ============================================
   BUTTON VIEW DETAILS
   ============================================ */
.btn-view-details {
    padding: 8px 16px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-view-details:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 20, 60, 0.3);
}

/* ============================================
   MODAL
   ============================================ */
.modal-modern {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-modern.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-modern {
    background: var(--white);
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.modal-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    color: var(--white);
}

.modal-header-modern h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 600;
}

.modal-header-modern .fluent-icon {
    font-size: 28px;
    color: var(--primary-red);
}

.close-modern {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-modern:hover {
    background: var(--primary-red);
    transform: rotate(90deg);
}

.close-modern .fluent-icon {
    font-size: 20px;
}

.modal-body-modern {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

/* ============================================
   INFO SECTIONS
   ============================================ */
.info-section-modern {
    margin-bottom: 30px;
    padding: 25px;
    background: var(--light-white);
    border-radius: 12px;
    border-left: 4px solid var(--primary-red);
}

.info-section-modern h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
}

.info-section-modern h3 .fluent-icon {
    font-size: 24px;
    color: var(--primary-red);
}

.info-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--light-gray);
    font-weight: 500;
}

.info-label .fluent-icon {
    font-size: 16px;
    color: var(--primary-red);
}

.info-value {
    font-size: 16px;
    color: var(--black);
    font-weight: 600;
}

/* ============================================
   AUDIO PLAYER
   ============================================ */
.audio-player-modern {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.audio-player-modern audio {
    width: 100%;
    height: 50px;
    border-radius: 10px;
}

/* ============================================
   TRANSCRIPT & MESSAGES
   ============================================ */
.transcript-modern {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid var(--off-white);
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    max-height: 400px;
    overflow-y: auto;
}

.messages-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.message-item {
    padding: 15px 18px;
    border-radius: 10px;
    border-left: 4px solid;
}

.message-user {
    background: rgba(220, 20, 60, 0.1);
    border-left-color: var(--primary-red);
}

.message-assistant {
    background: rgba(0, 0, 0, 0.05);
    border-left-color: var(--black);
}

.message-system {
    background: rgba(255, 179, 0, 0.1);
    border-left-color: var(--warning);
}

.message-role {
    font-weight: 700;
    font-size: 12px;
    color: var(--light-gray);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.message-content {
    color: var(--black);
    line-height: 1.6;
}

.analysis-modern {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid var(--off-white);
}

.analysis-modern pre {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
}

/* ============================================
   MODAL LOADING & ERROR
   ============================================ */
.modal-loading-modern {
    text-align: center;
    padding: 60px 20px;
}

.spinner-modern {
    width: 60px;
    height: 60px;
    border: 4px solid var(--off-white);
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-loading-modern p {
    color: var(--light-gray);
    font-size: 16px;
}

.modal-error-modern {
    text-align: center;
    padding: 60px 20px;
    color: var(--error);
}

.modal-error-modern .fluent-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.modal-error-modern p {
    font-size: 16px;
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notifications-modern {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    max-width: 400px;
}

.notification {
    background: var(--white);
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 12px;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-left-color: var(--success);
}

.notification.error {
    border-left-color: var(--error);
}

.notification.info {
    border-left-color: var(--primary-red);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
    }

    .stats-section {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .top-header {
        padding: 20px;
    }

    .content-grid {
        padding: 0 20px;
    }

    .card-modern.full-width {
        margin: 0 20px 20px 20px;
    }

    .info-grid-modern {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   INFO LIST (Single Call Page)
   ============================================ */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item-inline {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--light-white);
    border-radius: 10px;
    transition: all 0.3s;
}

.info-item-inline:hover {
    background: rgba(220, 20, 60, 0.05);
    transform: translateX(5px);
}

.info-item-inline .material-icons {
    color: var(--primary-red);
    font-size: 28px;
}

.info-item-inline p {
    margin: 0;
    color: var(--black);
    line-height: 1.6;
}

/* ============================================
   MINI STATS (Single Call Page)
   ============================================ */
.mini-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--light-white);
    border-radius: 12px;
    transition: all 0.3s;
}

.mini-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--shadow);
}

.mini-stat .material-icons {
    font-size: 36px;
    color: var(--primary-red);
}

.mini-stat div {
    display: flex;
    flex-direction: column;
}

.mini-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
}

.mini-stat-label {
    font-size: 13px;
    color: var(--light-gray);
    font-weight: 500;
}

/* ============================================
   QUICK ACCESS CARDS (Dashboard)
   ============================================ */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 0 40px 30px 40px;
}

.quick-access-card {
    background: var(--white);
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.quick-access-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px var(--shadow-hover);
    border-color: var(--primary-red);
}

.quick-access-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.quick-access-card:hover::before {
    transform: scaleX(1);
}

.quick-access-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.quick-access-card:hover .quick-access-icon {
    transform: scale(1.1) rotate(5deg);
}

.quick-access-icon .material-icons {
    font-size: 40px;
    color: var(--white);
}

.quick-access-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 10px;
}

.quick-access-card p {
    font-size: 14px;
    color: var(--light-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.quick-access-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.quick-access-card:hover .quick-access-arrow {
    background: var(--primary-red);
    transform: translateX(5px);
}

.quick-access-card:hover .quick-access-arrow .material-icons {
    color: var(--white);
}

.quick-access-arrow .material-icons {
    font-size: 24px;
    color: var(--primary-red);
    transition: all 0.3s;
}

@media (max-width: 1200px) {
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .quick-access-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 20px 20px;
    }
}


/* ============================================
   BATCH CONFIGURATION GRID
   ============================================ */
.batch-config-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 20px;
}

.config-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.config-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--black);
    font-size: 14px;
}

.config-group label .material-icons {
    font-size: 20px;
    color: var(--primary-red);
}

.config-group small {
    color: var(--light-gray);
    font-size: 12px;
    margin-top: -5px;
}

@media (max-width: 1024px) {
    .batch-config-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .batch-config-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 50%, var(--medium-gray) 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

.login-header {
    background: var(--black);
    padding: 40px 30px;
    text-align: center;
}

.login-logo {
    max-width: 200px;
    margin: 0 auto 25px;
}

.login-logo img {
    width: 100%;
    height: auto;
}

.login-header h1 {
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--off-white);
    font-size: 14px;
    opacity: 0.8;
}

.login-form {
    padding: 40px 30px;
}

.login-form .form-group-modern {
    margin-bottom: 25px;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .input-modern {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--light-gray);
    padding: 5px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--primary-red);
}

.login-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(211, 47, 47, 0.1);
    border: 1px solid var(--error);
    border-radius: 10px;
    color: var(--error);
    margin-bottom: 20px;
    font-size: 14px;
}

.login-error .material-icons {
    font-size: 20px;
}

.btn-login {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

.login-footer {
    padding: 25px 30px;
    background: var(--light-white);
    text-align: center;
    border-top: 1px solid var(--off-white);
}

.login-footer p {
    color: var(--light-gray);
    font-size: 13px;
    margin-bottom: 5px;
}

.login-footer .powered-by {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 0;
}

/* Spinning animation for loading */
.spinning {
    animation: spin 1s linear infinite;
}

/* Shake animation for error */
.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

@media (max-width: 480px) {
    .login-header {
        padding: 30px 20px;
    }

    .login-form {
        padding: 30px 20px;
    }

    .login-footer {
        padding: 20px;
    }

    .login-header h1 {
        font-size: 24px;
    }
}
