/* Custom styles for CS MINDSPACE Website */

/* --- Global Styles & Variables --- */
:root {
    --primary-color: #1E40AF; /* Deep Blue */
    --primary-light-color: #2563EB;
    --accent-color: #10B981; /* Green */
    --accent-hover-color: #059669;
    --dark-bg: #0F172A;
    --dark-card: #1E293B;
    --dark-nav: #1A2332;
    --text-color: #E2E8F0;
    --text-secondary-color: #94A3B8;
    --border-color: #374151; /* gray-700 approx */
    --border-light-color: #4B5563; /* gray-600 approx */
    --error-bg: #7f1d1d; /* red-900 approx */
    --error-border: #b91c1c; /* red-700 approx */
    --error-text: #fecaca; /* red-100 approx */
    --danger-color: #dc2626; /* red-600 approx */
    --danger-hover-color: #b91c1c; /* red-700 approx */
}

/* --- CUSTOM CURSOR --- */
html, body {
    /* 1. The URL must point to your image file. 
       2. The ', auto' at the end is REQUIRED or it won't work. */
    cursor: url('images/cursor.png'), auto;
}

/* Optional: Keep the pointer hand for links/buttons */
a, button, .btn, input[type="submit"], select, .clickable, label {
    cursor: pointer;
}

/* --- Base & Utility --- */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { font-family: 'Open Sans', sans-serif; background-color: var(--dark-bg); color: var(--text-color); margin: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4, h5, h6 { font-family: 'Inter', sans-serif; margin-top: 0; margin-bottom: 0.5em; font-weight: 600; }
a { color: var(--primary-light-color); text-decoration: none; transition: color 0.2s ease; }
a:hover { text-decoration: underline; color: #60a5fa; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-md { max-width: 28rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 640px) { .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 768px) { .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- Loader --- */
.loader-overlay { position: fixed; inset: 0; background-color: var(--dark-bg); display: flex; align-items: center; justify-content: center; z-index: 100; transition: opacity 0.3s ease-in-out; }
.loader-blue { width: 48px; height: 48px; border: 5px solid var(--primary-light-color); border-bottom-color: transparent; border-radius: 50%; display: inline-block; box-sizing: border-box; animation: rotation 1s linear infinite; }
@keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loader-container { display: flex; justify-content: center; align-items: center; padding: 1rem; }

/* --- Toast & Modal --- */
.toast { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 50; width: 100%; max-width: 320px; padding: 1rem; border-radius: 0.5rem; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); display: flex; align-items: center; gap: 0.75rem; transition: transform 0.3s ease-in-out; transform: translateX(120%); color: white; border: 1px solid; }
.toast.success { background-color: #16a34a; border-color: #15803d; }
.toast.error { background-color: var(--error-bg); border-color: var(--error-border); color: var(--error-text); }
.toast:not(.hidden) { transform: translateX(0); }
.toast-icon svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.toast-message { flex: 1; font-size: 0.875rem; font-weight: 500; margin: 0; }
.toast-close-btn { background: none; border: none; color: rgba(255, 255, 255, 0.7); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 0.5rem; }
.toast-close-btn:hover { color: white; }
.modal-overlay { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 1rem; background-color: rgba(0, 0, 0, 0.5); }
.modal-content { width: 100%; max-width: 448px; padding: 1.5rem; background-color: var(--dark-card); border-radius: 1rem; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.modal-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-color); }
.modal-message { color: var(--text-secondary-color); margin-bottom: 1.5rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.75rem; }

/* --- Card & Forms --- */
.card { background-color: var(--dark-card); border-radius: 1rem; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.form-title { font-size: 1.5rem; font-weight: 600; text-align: center; color: white; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.auth-form .form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary-color); margin-bottom: 0.5rem; }
.form-input, .form-textarea, select.form-input { width: 100%; padding: 0.75rem 1rem; background-color: var(--dark-bg); border: 1px solid var(--border-light-color); border-radius: 0.5rem; color: var(--text-color); font-size: 1rem; box-sizing: border-box; }
.form-input::placeholder, .form-textarea::placeholder { color: #6b7280; }
.form-input:focus, .form-textarea:focus { outline: none; border-color: transparent; box-shadow: 0 0 0 2px var(--primary-color); }
.form-input:disabled { background-color: var(--border-color); cursor: not-allowed; }
.form-textarea { min-height: 80px; resize: vertical; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1rem; border-radius: 0.5rem; font-weight: 700; border: none; cursor: pointer; transition: background-color 0.2s ease, transform 0.1s ease; white-space: nowrap; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-primary { background-color: var(--primary-color); color: white; padding: 0.75rem 1rem; }
.btn-primary:hover:not(:disabled) { background-color: var(--primary-light-color); transform: scale(1.02); }
.btn-secondary { background-color: #4b5563; color: white; font-weight: 500; padding: 0.5rem 1rem; }
.btn-secondary:hover:not(:disabled) { background-color: #6b7280; }
.btn-secondary-small { background-color: #4b5563; color: white; font-weight: 500; padding: 0.375rem 0.75rem; border-radius: 0.375rem; font-size: 0.875rem; }
.btn-secondary-small:hover:not(:disabled) { background-color: #6b7280; }
.btn-danger { background-color: var(--danger-color); color: white; font-weight: 500; padding: 0.5rem 1rem; }
.btn-danger:hover:not(:disabled) { background-color: var(--danger-hover-color); }
.btn-full { width: 100%; }
.btn-icon { margin-right: 0.5rem; width: 1.25rem; height: 1.25rem; }

/* --- Auth Screen --- */
.auth-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth-box { width: 100%; max-width: 448px; }
.auth-header { text-align: center; margin-bottom: 2rem; }
.app-logo-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem; 
    margin-bottom: 0.5rem; 
}
.logo-img-auth {
    height: 48px; 
    width: 48px; 
    object-fit: contain;
}
.app-title { font-size: 2.25rem; font-weight: 700; color: var(--primary-light-color); margin-bottom: 0; } 
.app-tagline { color: var(--text-secondary-color); margin-top: 0.25rem; } 
.auth-form { padding: 2rem; }
.auth-switch-text { font-size: 0.875rem; text-align: center; color: var(--text-secondary-color); margin-top: 1.5rem; }
.role-specific-fields { margin-top: 1rem; }
.role-specific-fields .form-group { margin-bottom: 1rem; }
.error-box { background-color: var(--error-bg); border: 1px solid var(--error-border); color: var(--error-text); padding: 0.75rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; margin-bottom: 1.5rem; }

/* --- Dashboard Layout --- */
.dashboard-layout { display: flex; height: 100vh; }
.sidebar { width: 256px; background-color: var(--dark-nav); display: flex; flex-direction: column; flex-shrink: 0; border-right: 1px solid var(--border-color); }
.sidebar-header {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    padding: 0 1rem; 
}
.sidebar-logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem; 
    overflow: hidden; 
}
.logo-img-sidebar {
    height: 32px; 
    width: 32px; 
    object-fit: contain;
    flex-shrink: 0; 
}
.sidebar-title {
    font-size: 1.25rem; 
    font-weight: 700;
    color: white;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0; 
}
.sidebar-user-info { padding: 1rem; border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
.user-email { font-size: 0.75rem; color: var(--text-secondary-color); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-nav { flex: 1; padding: 1rem; list-style: none; margin: 0; }
.sidebar-nav li { margin-bottom: 0.5rem; }
.sidebar-link { display: flex; align-items: center; padding: 0.625rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary-color); transition: background-color 0.2s ease, color 0.2s ease; }
.sidebar-link:hover { background-color: var(--border-color); color: white; text-decoration: none; }
.sidebar-link.active { background-color: var(--border-color); color: white; }
.sidebar-footer { padding: 1rem; border-top: 1px solid var(--border-color); flex-shrink: 0; }
.btn-logout { width: 100%; color: #f87171; border: 1px solid rgba(248, 113, 113, 0.5); background-color: transparent; padding: 0.5rem 1rem; font-weight: 500; }
.btn-logout:hover { background-color: rgba(239, 68, 68, 0.1); color: #fca5a5; }
.main-content-wrapper { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.header-bar { height: 4rem; background-color: var(--dark-card); border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
.main-content { flex: 1; overflow-y: auto; background-color: var(--dark-bg); }
.page-content-padding { padding: 1.5rem; } 
@media (min-width: 640px) { .page-content-padding { padding: 2rem; } }
.page-area { transition: opacity 0.3s ease-in-out; }
.page-area.hidden { display: none !important; opacity: 0; }
.page-content.page-hidden { display: none !important; } 

/* --- General Content Styles --- */
.page-title { font-size: 1.5rem; font-weight: 700; color: white; margin-bottom: 1.5rem; }
.section-title { font-size: 1.25rem; font-weight: 600; color: white; margin-bottom: 1rem; }
.content-section { background-color: var(--dark-card); padding: 1.5rem; border-radius: 0.5rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); margin-bottom: 1.5rem; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.section-header .section-title { margin-bottom: 0; }
.link { font-weight: 500; color: var(--primary-light-color); background: none; border: none; cursor: pointer; padding: 0; }
.link:hover { text-decoration: underline; }
.text-secondary { color: var(--text-secondary-color); }
.error-message { color: #f87171; }

/* --- Data Table --- */
.data-table-container { overflow-x: auto; }
.data-table { min-width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border-color); border-radius: 0.5rem; overflow: hidden; }
.data-table thead { background-color: var(--border-color); }
.data-table th { padding: 0.75rem 1.5rem; text-align: left; font-size: 0.75rem; font-weight: 500; color: var(--text-secondary-color); text-transform: uppercase; letter-spacing: 0.05em; }
.data-table tbody { background-color: var(--dark-card); }
.data-table td { padding: 1rem 1.5rem; font-size: 0.875rem; color: var(--text-color); border-top: 1px solid var(--border-color); white-space: nowrap; vertical-align: middle; }
.data-table tbody tr:first-child td { border-top: none; }
.data-table select.form-input { padding: 0.25rem 0.5rem; font-size: 0.75rem; margin: 0; }

/* --- List Item Styles --- */
.list-container { display: flex; flex-direction: column; gap: 0.75rem; }
.list-item { background-color: var(--border-color); padding: 0.75rem 1rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; transition: background-color 0.2s ease; text-decoration: none; color: var(--text-color); }
.list-item:hover { background-color: var(--border-light-color); text-decoration: none; color: var(--text-color); }
.list-item-content { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.list-item-icon { color: var(--primary-light-color); flex-shrink: 0; display: flex; align-items: center;}
.list-item-icon svg, .list-item-icon-svg { width: 1.25rem; height: 1.25rem; }
.list-item-text { min-width: 0; }
.list-item-title { font-size: 0.875rem; font-weight: 500; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.list-item-subtitle { font-size: 0.75rem; color: var(--text-secondary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.list-item-action { flex-shrink: 0; display: flex; align-items: center; }
.list-item-action svg { width: 1rem; height: 1rem; color: #9ca3af; }
.list-item-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

/* --- Subject Card Grid --- */
.subject-card-grid {
    display: grid;
    gap: 1rem; 
    grid-template-columns: repeat(1, minmax(0, 1fr)); 
    margin-top: 1rem; 
}

@media (min-width: 640px) {
    #student-subjects-list.grid { 
        grid-template-columns: repeat(2, minmax(0, 1fr)); 
    }
}

#semesters-list-container .grid {
     grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) {
    #semesters-list-container .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    #semesters-list-container .grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.subject-card-link { display: block; background-color: var(--border-color); padding: 1rem; border-radius: 0.5rem; transition: background-color 0.2s ease, transform 0.2s ease; text-decoration: none; position: relative; }
.subject-card-link:hover { background-color: var(--border-light-color); text-decoration: none; transform: translateY(-2px); }
.subject-card-link h3 { font-weight: 600; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 0.25rem 0; }
.subject-card-link p { font-size: 0.875rem; color: var(--text-secondary-color); margin: 0; }
.subject-card-link .delete-subject-btn { position: absolute; top: 0.5rem; right: 0.5rem; opacity: 0; transition: opacity 0.2s ease; }
.subject-card-link:hover .delete-subject-btn { opacity: 1; }

/* --- Delete Buttons --- */
.delete-subject-btn, .delete-semester-btn, .delete-resource-btn { background: none; border: none; padding: 0.25rem; cursor: pointer; color: var(--text-secondary-color); line-height: 1; }
.delete-subject-btn:hover, .delete-semester-btn:hover, .delete-resource-btn:hover { color: var(--danger-color); }
.delete-subject-btn svg, .delete-semester-btn svg, .delete-resource-btn svg, .delete-icon-svg { width: 1.25rem; height: 1.25rem; }

/* --- Back Button --- */
.back-button { display: inline-flex; align-items: center; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary-color); margin-bottom: 1rem; background: none; border: none; cursor: pointer; padding: 0; }
.back-button:hover { color: white; }
.back-button svg { width: 1rem; height: 1rem; margin-right: 0.5rem; }

/* --- File Upload Area --- */
.file-drop-zone { margin-top: 0.25rem; display: flex; justify-content: center; padding: 1.25rem 1.5rem; border: 2px dashed var(--border-light-color); border-radius: 0.5rem; transition: border-color 0.2s ease; }
.file-drop-zone.dragover { border-color: var(--primary-light-color); }
.file-drop-content { text-align: center; }
.file-drop-content svg { margin: 0 auto; height: 3rem; width: 3rem; color: var(--text-secondary-color); }
.file-drop-text { font-size: 0.875rem; color: var(--text-secondary-color); }
.file-drop-text label { cursor: pointer; color: var(--primary-light-color); font-weight: 500; }
.file-drop-text label:hover { color: var(--primary-color); }
.file-drop-text input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.file-drop-hint { font-size: 0.75rem; color: var(--text-secondary-color); }
#file-info { margin-top: 0.5rem; font-size: 0.875rem; color: var(--text-secondary-color); }

/* --- App Footer --- */
.app-footer {
    flex-shrink: 0; 
    padding: 1.5rem;
    background-color: var(--dark-nav);
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary-color);
}

.app-footer p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
}

/* --- Search Page Styles --- */

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper .form-input {
    padding-left: 3rem; 
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.search-input-icon {
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0;
    inset-block-end: 0;
    display: flex;
    align-items: center;
    padding-inline-start: 1rem;
    pointer-events: none;
}

.search-icon-svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-secondary-color);
}

#search-results-loader {
    display: none; 
    justify-content: center;
}

#search-results-list {
    display: grid;
    gap: 1.5rem; 
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    #search-results-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.search-result-card {
    background-color: var(--dark-card);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    gap: 1rem; 
    align-items: flex-start;
    transition: background-color 0.2s ease;
}

.search-result-card:hover {
    background-color: var(--border-light-color);
}

.search-result-icon-wrapper {
    flex-shrink: 0;
    width: 2.5rem; 
    height: 2.5rem; 
    border-radius: 0.375rem;
    background-color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light-color);
}
.search-result-icon-wrapper .list-item-icon-svg {
    width: 1.5rem;
    height: 1.5rem;
}

.search-result-content {
    flex: 1 1 0%;
    min-width: 0; 
}

.search-result-title {
    display: block;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
    transition: color 0.2s ease;
}
.search-result-title:hover {
    color: var(--primary-light-color);
    text-decoration: none;
}

.search-result-description {
    font-size: 0.875rem; 
    color: var(--text-secondary-color);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.search-result-meta {
    margin-top: 0.5rem;
    font-size: 0.75rem; 
    color: var(--text-secondary-color);
}

.search-result-meta .meta-dot {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}

/* --- Mobile Responsive Styles --- */
#mobile-menu-btn {
    display: none; 
    align-items: center;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
}
#mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
}
#mobile-menu-btn:hover {
    background-color: var(--border-light-color);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 49; 
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

@media (max-width: 768px) {
    .header-bar {
        display: flex;
        align-items: center;
        padding: 0 1rem;
    }

    #mobile-menu-btn {
        display: flex !important;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
    }
    
    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }
}

/* --- Profile Page Enhancements --- */
.bg-gradient-to-r {
    background: linear-gradient(to right, #1e3a8a, #0f172a); 
}

.rounded-full {
    border-radius: 50%;
}

.text-blue-200 { color: #bfdbfe; }
.bg-blue-900 { background-color: #1e3a8a; }
.text-green-200 { color: #bbf7d0; }
.bg-green-900 { background-color: #14532d; }

.lg\:col-span-2 { grid-column: span 2 / span 2; }

/* --- Skeleton Loader --- */
.skeleton {
    background: #334155; 
    background: linear-gradient(to right, #334155 8%, #475569 18%, #334155 33%); 
    background-size: 800px 104px;
    animation: shimmer 2s infinite linear forwards;
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.skeleton-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%; 
    flex-shrink: 0;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.skeleton-text.short { width: 60%; }
.skeleton-text.long { width: 80%; }
.skeleton-text.title { height: 1.5rem; width: 40%; margin-bottom: 1rem; }

.skeleton-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--dark-card);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

/* --- Install Prompt Modal --- */
#install-modal .modal-content {
    max-width: 320px; 
    padding: 2rem;
    border-radius: 1.5rem;
}