@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #f5f7fb;
    --card-bg: #ffffff;
    --card-border: rgba(14, 56, 108, 0.08);
    --accent-color: #0e386c;
    --text-primary: #0a2240;
    --text-secondary: #7e8e9f;
    --success: #10b981;
    --error: #ef4444;
    --radius-lg: 28px;
    --radius-md: 18px;
    --glass-blur: 0px;
    --shadow-sm: 0 4px 12px rgba(14, 56, 108, 0.02);
    --shadow-md: 0 10px 30px rgba(14, 56, 108, 0.04);
    --shadow-lg: 0 15px 40px rgba(14, 56, 108, 0.06);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Background decorative elements matching the example */
body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(100px);
    opacity: 0.08;
}

body::before {
    width: 500px;
    height: 500px;
    background: #0e386c;
    top: -150px;
    right: -100px;
}

body::after {
    width: 400px;
    height: 400px;
    background: #0e386c;
    bottom: 5%;
    left: -150px;
}

#app-container {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(235, 240, 250, 0.4), var(--bg-color));
    position: relative;
    padding-bottom: 100px;
    margin: 0 auto;
    z-index: 1;
}

@media (min-width: 768px) {
    #app-container {
        max-width: 1200px;
        padding-bottom: 40px;
        padding-left: 100px;
    }
}

/* Header */
header {
    padding: 40px 24px 20px;
}

header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

header p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* Cards */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 12px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .wizard-step .glass-card, .login-card {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .stepper {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

.glass-card:active {
    transform: scale(0.98);
}

/* Alternate project cards inside lists */
.project-card-blue {
    background: var(--accent-color) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(14, 56, 108, 0.15) !important;
}

.project-card-blue .project-card-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.project-card-blue .project-card-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.project-card-white {
    background: #ffffff !important;
    border: 1px solid rgba(14, 56, 108, 0.08) !important;
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-md) !important;
}

.project-card-white .project-card-btn {
    background: #f0f3f8 !important;
    color: var(--text-primary) !important;
    border: 1px solid transparent !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.project-card-white .project-card-btn:hover {
    background: #e5eaf2 !important;
}

/* Custom Welcome Banner */
.welcome-banner {
    background: #ffffff;
    border: 1.5px solid var(--accent-color);
    border-radius: 20px;
    padding: 24px;
    margin: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 120px;
    height: 120px;
    background: rgba(14, 56, 108, 0.03);
    border-radius: 50%;
    z-index: 0;
}

.welcome-content {
    z-index: 1;
    max-width: 70%;
}

.welcome-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 6px;
}

.welcome-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.welcome-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(14, 56, 108, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    z-index: 1;
}

/* Buttons */
.btn-primary {
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    box-shadow: 0 8px 24px rgba(14, 56, 108, 0.2);
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    background: #0b2d56;
    box-shadow: 0 10px 28px rgba(14, 56, 108, 0.25);
}

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

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #fcfdfe;
    border-color: rgba(14, 56, 108, 0.15);
}

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

.input-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    margin-bottom: 8px;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

input[type="text"], input[type="password"], input[type="number"], select {
    width: 100%;
    background: #f0f3f8;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

input:focus, select:focus {
    border-color: rgba(14, 56, 108, 0.2);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 56, 108, 0.05);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@media (min-width: 768px) {
    .btn-primary {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Navigation Bar */
.nav-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 432px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 40px;
    height: 72px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(14, 56, 108, 0.08);
}

.nav-logo {
    display: none;
}

@media (min-width: 768px) {
    .nav-bar {
        left: 24px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        width: 80px;
        height: auto;
        min-height: 500px;
        flex-direction: column;
        border-radius: 30px;
        padding: 30px 0;
    }
    
    .nav-item-center {
        margin-top: 0 !important;
        margin: 20px 0 !important;
    }

    .nav-logo {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 48px;
        height: 48px;
        margin-bottom: 24px;
    }
    
    .nav-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.nav-item {
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.nav-item.active {
    background: rgba(14, 56, 108, 0.06);
    color: var(--accent-color);
}

.nav-item-center {
    background: var(--accent-color);
    color: #ffffff;
    width: 56px;
    height: 56px;
    margin-top: -28px;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(14, 56, 108, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
}

.nav-item-center:hover {
    transform: scale(1.05);
    background: #0b2d56;
}

.nav-item-center i {
    width: 32px !important;
    height: 32px !important;
}

/* Wizard Stepper */
.stepper {
    display: flex;
    justify-content: space-between;
    margin: 0 24px 24px;
    padding: 0 10px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(14, 56, 108, 0.1);
    position: relative;
    transition: all 0.3s;
}

.step-dot.active {
    background: var(--accent-color);
    box-shadow: 0 0 12px rgba(14, 56, 108, 0.4);
    transform: scale(1.2);
}

.step-dot.completed {
    background: var(--success);
}

/* Search Bar */
.search-container {
    padding: 0 24px 20px;
}

.search-bar {
    background: #ffffff;
    border-radius: 20px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}

.search-bar input {
    background: none;
    border: none;
    color: var(--text-primary);
    width: 100%;
    font-size: 15px;
    font-weight: 500;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

/* Manifest List Grid */
#manifest-list, #archive-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 768px) {
    #manifest-list, #archive-list {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        padding: 0 24px;
    }
    .glass-card {
        margin: 12px;
    }
}

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

/* Login View */
#view-login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 24px;
    background: radial-gradient(circle at center, #f5f7fb 0%, #e8edf5 100%);
    position: relative;
    overflow: hidden;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(14, 56, 108, 0.15);
    z-index: 1;
}

.login-logo i {
    color: #ffffff !important;
}

.login-card {
    width: 100%;
    max-width: 380px;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
    z-index: 1;
}

.login-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* Document Upload Zone */
.doc-upload-zone {
    background: #f0f3f8;
    border: 1px dashed rgba(14, 56, 108, 0.15);
    border-radius: var(--radius-md);
    padding: 4px 16px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.doc-upload-zone:hover {
    background: #e8edf5;
    border-color: var(--accent-color);
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: none;
}

.doc-icon {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.doc-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.doc-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.hidden {
    display: none !important;
}

/* Welcome Banner Interactions */
.welcome-banner {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.welcome-banner:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: #0b2d56;
}

.welcome-banner:active {
    transform: translateY(0);
}

/* Modal Window */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 34, 64, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.modal-content {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(14, 56, 108, 0.15) !important;
    background: #ffffff !important;
    border: 1.5px solid var(--accent-color) !important;
    animation: modalScaleUp 0.3s ease-out;
}

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

/* Custom Segmented Control Selection (Step 1) */
.segmented-control {
    display: flex;
    background: #f0f3f8;
    border-radius: 14px;
    padding: 6px;
    gap: 6px;
    width: 100%;
    margin-top: 5px;
}

.segment-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.segment-btn.active {
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(14, 56, 108, 0.12);
}

/* Custom Option Selection Cards (Step 2) */
.option-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f0f3f8;
    border: 1.5px solid transparent;
    border-radius: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
}

.option-card:hover {
    background: #e8edf5;
    border-color: rgba(14, 56, 108, 0.1);
}

.option-card.active {
    background: rgba(14, 56, 108, 0.04);
    border-color: var(--accent-color);
}

.option-card-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.option-card.active .option-card-radio {
    border-color: var(--accent-color);
}

.option-card-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.option-card.active .option-card-radio::after {
    transform: translate(-50%, -50%) scale(1);
}

.option-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-card-content strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.option-card-content p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Stats View Styles */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 0;
        margin: 12px 24px;
        gap: 20px;
    }
    .stats-grid .stat-card {
        margin: 0 !important;
    }
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px !important;
}

.stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-icon-box.blue {
    background: rgba(14, 56, 108, 0.06);
    color: var(--accent-color);
}

.stat-icon-box.success {
    background: rgba(16, 185, 129, 0.08);
    color: var(--success);
}

.stat-icon-box.accent {
    background: rgba(14, 56, 108, 0.06);
    color: var(--accent-color);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.stat-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Custom CSS Charts */
.custom-chart-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chart-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (min-width: 480px) {
    .chart-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
}

.chart-row-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    width: 100%;
    max-width: 180px;
}

.chart-row-bar-wrapper {
    flex: 1;
    height: 12px;
    background: #f0f3f8;
    border-radius: 6px;
    overflow: hidden;
}

.chart-row-bar {
    height: 100%;
    background: var(--accent-color);
    border-radius: 6px;
    transition: width 1s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.chart-row-bar.secondary {
    background: #475569;
}

.chart-row-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    width: 40px;
    text-align: right;
}

/* Risk Meter CSS */
.risk-meter-container {
    position: relative;
    width: 80px;
    height: 48px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.risk-meter-arc {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 8px solid #f0f3f8;
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-radius: 50%;
    transform: rotate(-135deg);
    top: 0;
}

.risk-meter-arc::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 80px;
    height: 80px;
    border: 8px solid var(--success);
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-radius: 50%;
    transform: rotate(20deg);
}

.risk-meter-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

#btn-logout {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#btn-logout:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #ef4444 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.08);
}

#btn-logout:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Slide Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  -webkit-transition: .3s;
  transition: .3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .3s;
  transition: .3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--accent-color);
}

input:checked + .slider:before {
  -webkit-transform: translateX(22px);
  -ms-transform: translateX(22px);
  transform: translateX(22px);
}

.slider.round {
  border-radius: 26px;
}

.slider.round:before {
  border-radius: 50%;
}

/* e.firma Grid and Drag & Drop */
@media (min-width: 600px) {
    .efirma-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

.efirma-drop-zone {
    border: 2px dashed rgba(14, 56, 108, 0.15);
    background: rgba(14, 56, 108, 0.02);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.efirma-drop-zone:hover {
    border-color: var(--accent-color);
    background: rgba(14, 56, 108, 0.05);
    transform: translateY(-2px);
}

.efirma-drop-zone .drop-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
}

.efirma-drop-zone .drop-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.efirma-drop-zone .drop-status {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 0;
}

.efirma-drop-zone.loaded {
    border-style: solid;
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.04);
}

.efirma-drop-zone.loaded .drop-icon {
    color: var(--success);
}

.status-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.status-pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: status-pulse-dot-anim 1.5s infinite ease-in-out;
}

@keyframes status-pulse-dot-anim {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* View Header and Logo Integration */
.view-header {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 40px 24px 20px !important;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: auto;
    flex-shrink: 0;
}

.header-logo img {
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Card action buttons transitions and hovers */
.card-action-btn {
    transition: all 0.2s ease-in-out;
}

.card-action-btn:hover {
    opacity: 0.85;
    background: rgba(14, 56, 108, 0.04) !important;
}

.project-card-blue .card-action-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.project-card-blue a[download],
.project-card-white a[download] {
    transition: all 0.2s ease-in-out;
}

.project-card-blue a[download]:hover,
.project-card-white a[download]:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(14, 56, 108, 0.2) !important;
}

.project-card-blue a[download]:active,
.project-card-white a[download]:active {
    transform: translateY(0);
}

/* Visor de Expediente Digital */
.files-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(14, 56, 108, 0.04);
    border: 1px solid rgba(14, 56, 108, 0.08);
    border-radius: 14px;
    transition: all 0.2s ease-in-out;
}

.files-list-item:hover {
    background: rgba(14, 56, 108, 0.07);
    border-color: rgba(14, 56, 108, 0.15);
    transform: translateY(-1px);
}

.files-list-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.files-list-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(14, 56, 108, 0.08);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.files-list-item-details h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.files-list-item-details p {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 2px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.files-list-item-action {
    display: flex;
    gap: 8px;
}

.files-btn-view, .files-btn-download {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.files-btn-view {
    background: rgba(14, 56, 108, 0.05);
    color: var(--accent-color);
}

.files-btn-view:hover {
    background: rgba(14, 56, 108, 0.12);
}

.files-btn-download {
    background: var(--accent-color);
    color: #ffffff;
}

.files-btn-download:hover {
    background: #0b2d56;
    box-shadow: 0 4px 10px rgba(14, 56, 108, 0.15);
}

.files-empty-state {
    text-align: center;
    padding: 30px 20px;
    background: rgba(14, 56, 108, 0.02);
    border: 1.5px dashed rgba(14, 56, 108, 0.1);
    border-radius: 16px;
    color: var(--text-secondary);
}
