:root {
    --primary: #4e54c8;
    --primary-light: #8f94fb;
    --secondary: #ff6a00;
    --dark: #1e1e2d;
    --light: #f4f6f9;
    --success: #28a745;
    --danger: #dc3545;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

.login-body {
    background: linear-gradient(145deg, #0b1437 0%, #112066 45%, #0d1b4b 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Círculos decorativos de fondo */
.login-body::before,
.login-body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: .12;
}
.login-body::before {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #5b8cf7 0%, transparent 70%);
    top: -180px; left: -150px;
}
.login-body::after {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
    bottom: -160px; right: -120px;
}

.glass-container {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
    padding: 48px 44px 40px;
    position: relative;
    z-index: 1;
}

.login-box {
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-header .login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 16px;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(37,99,235,.35);
}

.login-header .login-icon i {
    font-size: 24px;
    color: #fff;
}

.login-header h2 {
    color: #0f172a;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -.3px;
    margin-bottom: 6px;
}

.login-header p {
    color: #64748b;
    font-size: 14px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.input-field-wrap {
    position: relative;
}

.input-field-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
}

.input-field-wrap input {
    padding-left: 40px !important;
}

.input-group input, .input-group textarea, .input-group select {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    background: #f9fafb;
    color: #111827;
    transition: all 0.2s;
}

.input-group input:focus, .input-group textarea:focus, .input-group select:focus {
    border-color: #2563eb;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(37,99,235,.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,99,235,.45);
}

.btn-block-login {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    letter-spacing: .3px;
    border-radius: 12px;
    margin-top: 8px;
}

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

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

.btn-whatsapp {
    background: #25D366;
    color: white;
    text-decoration: none;
}
.btn-whatsapp:hover { background: #128C7E; }

.btn-excel {
    background: #107c41;
    color: white;
    text-decoration: none;
}
.btn-excel:hover { background: #0c5e31; }

.btn-block {
    width: 100%;
    display: block;
}

.error-msg {
    color: var(--danger);
    background: #f8d7da;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--dark);
    color: white;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    flex-shrink: 0;
}

.sidebar-brand {
    padding: 20px;
    font-size: 24px;
    font-weight: 700;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

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

.sidebar-nav a {
    display: block;
    padding: 15px 20px;
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: var(--primary);
    color: white;
    border-left: 4px solid var(--primary-light);
}

.sidebar-footer {
    padding: 20px;
    background: rgba(0,0,0,0.2);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f4f6f9;
}

.topbar {
    background: white;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content-body {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 18px;
    color: #333;
}

.card-body {
    padding: 20px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    background: #f8f9fa;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

table tbody tr:hover {
    background: #fdfdfd;
}

/* VoIP Dialer Overlay */
.voip-dialer {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 320px;
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    border: 1px solid #eee;
    overflow: hidden;
}

.voip-dialer.active {
    transform: translateY(0);
}

.dialer-header {
    background: var(--dark);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dialer-body {
    padding: 20px;
    text-align: center;
}

.dial-status {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    min-height: 20px;
}

.dial-number {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.dial-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-round {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.btn-call { background: var(--success); color: white; }
.btn-call:hover { transform: scale(1.1); box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4); }

.btn-end { background: var(--danger); color: white; }
.btn-end:hover { transform: scale(1.1); box-shadow: 0 6px 15px rgba(220, 53, 69, 0.4); }

/* Recording pulse animation */
.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(220, 53, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: modalIn 0.3s ease-out;
}

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

@keyframes slideInToast {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.close-modal {
    background: none; border: none; font-size: 20px; cursor: pointer; color: #888;
}

/* Custom Audio Player */
.custom-audio-player {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 480px; /* Expanded for full visual search and timeline controls */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-audio-player:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.player-controls {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 16px;
}

.play-pause-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(78, 84, 200, 0.3);
}

.play-pause-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(78, 84, 200, 0.4);
}

/* Timeline / Seek Bar Styles */
.seek-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 130px;
}

.seek-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}

.seek-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
}

.seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-top: -3px; /* centers vertical point */
    transition: transform 0.15s, background-color 0.15s;
}

.seek-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    background: var(--primary-light);
}

.time-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #718096;
    font-weight: 600;
    padding: 0 2px;
}

.time-display {
    font-size: 10px;
    color: #718096;
}

/* Inline Volume Controls */
.volume-container-inline {
    display: flex;
    align-items: center;
    gap: 0px;
    flex-shrink: 0;
    background: #f7fafc;
    padding: 2px 6px;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
}

.volume-container-inline:hover {
    background: #edf2f7;
    gap: 6px;
}

.vol-btn {
    background: none;
    border: none;
    color: #4a5568;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vol-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 60px;
    opacity: 1;
    height: 4px;
    background: #cbd5e0;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.volume-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-light);
    cursor: pointer;
    border: 1px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    margin-top: -3px;
    transition: transform 0.1s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--secondary);
}

.volume-value {
    font-size: 9px;
    color: #4a5568;
    font-weight: 700;
    width: 35px;
    opacity: 1;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s ease;
    min-width: 0px;
}

.player-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.speed-btn {
    background: #edf2f7;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #4a5568;
    padding: 4px 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.speed-btn:hover {
    background: #e2e8f0;
    color: var(--primary);
}

.download-btn {
    color: #718096;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s, transform 0.2s;
    padding: 4px;
}

.download-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.delete-audio-btn {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.delete-audio-btn:hover {
    color: var(--danger);
    transform: scale(1.2);
}

.custom-audio-player audio {
    display: none;
}

/* ==========================================
   SIDEBAR SECTION LABELS 
   ========================================== */
.nav-section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.35);
    padding: 18px 20px 6px;
    font-weight: 700;
}

/* ==========================================
   AGENDA / CALENDAR LAYOUT
   ========================================== */
.agenda-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .agenda-layout { grid-template-columns: 1fr; }
}

.calendar-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cal-title {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.cal-nav-btn {
    background: #edf2f7;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.2s;
}

.cal-nav-btn:hover {
    background: var(--primary);
    color: #fff;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.cal-day-header {
    font-size: 11px;
    font-weight: 700;
    color: #a0aec0;
    padding: 6px 0;
    text-transform: uppercase;
}

.cal-day {
    font-size: 13px;
    padding: 8px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    color: #4a5568;
    position: relative;
}

.cal-day:hover {
    background: #edf2f7;
}

.cal-day.today {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(78,84,200,0.3);
}

.cal-day.has-reminder {
    font-weight: 700;
}

.cal-day.has-reminder::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--secondary);
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
}

.cal-day.today.has-reminder::after {
    background: #fff;
}

.cal-day.empty {
    cursor: default;
}

.cal-day.selected {
    background: var(--primary-light);
    color: #fff;
}

.calendar-legend {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    font-size: 11px;
    color: #718096;
}

.calendar-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Reminders Card */
.reminders-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.reminder-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    background: #f7fafc;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary);
    transition: all 0.2s;
}

.reminder-item:hover {
    background: #edf2f7;
    transform: translateX(3px);
}

.reminder-item.completed {
    opacity: 0.5;
    border-left-color: var(--success);
}

.reminder-item.overdue {
    border-left-color: var(--danger);
    background: #fff5f5;
}

.reminder-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 16px;
}

.reminder-info {
    flex: 1;
    min-width: 0;
}

.reminder-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2px;
}

.reminder-client {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

.reminder-date {
    font-size: 11px;
    color: #718096;
    margin-top: 4px;
}

.reminder-desc {
    font-size: 12px;
    color: #a0aec0;
    margin-top: 4px;
}

.reminder-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.reminder-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}

.reminder-actions .btn-complete {
    color: var(--success);
}

.reminder-actions .btn-complete:hover {
    background: #c6f6d5;
}

.reminder-actions .btn-delete-reminder {
    color: #e53e3e;
}

.reminder-actions .btn-delete-reminder:hover {
    background: #fed7d7;
}

/* ==========================================
   DOCUMENTS / EXPEDIENTES
   ========================================== */
.filter-select {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 180px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(78,84,200,0.1);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.doc-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.doc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: var(--primary-light);
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.doc-card[data-type="Contrato"]::before { background: linear-gradient(90deg, #4e54c8, #8f94fb); }
.doc-card[data-type="Factura"]::before { background: linear-gradient(90deg, #28a745, #5dd879); }
.doc-card[data-type="Expediente"]::before { background: linear-gradient(90deg, #ff6a00, #ffa040); }
.doc-card[data-type="Escritura"]::before { background: linear-gradient(90deg, #e53e3e, #fc8181); }
.doc-card[data-type="Poder"]::before { background: linear-gradient(90deg, #805ad5, #b794f4); }
.doc-card[data-type="Otro"]::before { background: linear-gradient(90deg, #718096, #a0aec0); }

.doc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.doc-icon.pdf { background: #fff5f5; color: #e53e3e; }
.doc-icon.doc { background: #ebf8ff; color: #3182ce; }
.doc-icon.img { background: #f0fff4; color: #38a169; }
.doc-icon.xls { background: #f0fff4; color: #28a745; }
.doc-icon.default { background: #f7fafc; color: #718096; }

.doc-type-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.doc-type-badge.Contrato { background: #e9e5ff; color: #4e54c8; }
.doc-type-badge.Factura { background: #c6f6d5; color: #22543d; }
.doc-type-badge.Expediente { background: #ffecd2; color: #c05621; }
.doc-type-badge.Escritura { background: #fed7d7; color: #9b2c2c; }
.doc-type-badge.Poder { background: #e9d8fd; color: #553c9a; }
.doc-type-badge.Otro { background: #e2e8f0; color: #4a5568; }

.doc-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-client {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.doc-date {
    font-size: 11px;
    color: #a0aec0;
    margin-bottom: 12px;
}

.doc-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #edf2f7;
}

.doc-actions a,
.doc-actions button {
    flex: 1;
    padding: 6px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.doc-actions .btn-view-doc {
    background: #edf2f7;
    color: #4a5568;
}

.doc-actions .btn-view-doc:hover {
    background: var(--primary);
    color: #fff;
}

.doc-actions .btn-download-doc {
    background: #e9e5ff;
    color: var(--primary);
}

.doc-actions .btn-download-doc:hover {
    background: var(--primary);
    color: #fff;
}

.doc-actions .btn-delete-doc {
    background: #fff5f5;
    color: #e53e3e;
}

.doc-actions .btn-delete-doc:hover {
    background: #e53e3e;
    color: #fff;
}

.docs-empty {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
}

.docs-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #cbd5e0;
}

.docs-empty p {
    font-size: 15px;
}

