/* ==========================
   AINUDDIN MAIN STYLESHEET
   ========================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Amiri:wght@400;700&display=swap');

:root {
    --primary: #1e5631;
    --primary-dark: #143d23;
    --primary-light: #2e7d32;
    --accent: #d4af37; /* Gold accent for premium Islamic feel */
    --teal: #00897b;
    --light-bg: #f8faf9;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #475569;
    --muted: #64748b;
    --border: #e2e8f0;
    --danger: #dc2626;
    --success: #16a34a;
    --shadow-sm: 0 2px 8px rgba(30, 86, 49, 0.04);
    --shadow-md: 0 8px 24px rgba(30, 86, 49, 0.08);
    --shadow-lg: 0 16px 40px rgba(30, 86, 49, 0.12);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

input[type="text"], textarea, table td {
    text-transform: uppercase;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background: var(--light-bg);
    color: var(--text);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================
   NAVIGATION
   ========================== */
.top-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.top-nav.scrolled {
    height: 65px;
    box-shadow: var(--shadow-md);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(30, 86, 49, 0.3);
}

.brand-text {
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
    line-height: 1.2;
}

.brand-text small {
    display: block;
    font-weight: 400;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Default text links (Utama, User Name) */
.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.nav-links a:hover {
    color: var(--primary);
    background: #f1f5f9;
}

/* Active Navigation Item styling matching Admin active status */
.nav-links a.active {
    background: #dcfce7 !important;
    color: #166534 !important;
    font-weight: 600 !important;
}

/* Logged in user name link */
.nav-user-name {
    border-left: 1px solid var(--border);
    padding-left: 16px !important;
    margin-left: 4px;
}

/* Log Keluar Button (Pill design like Daftar) */
.btn-nav-logout {
    background: #475569 !important;
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    border-bottom: none !important;
    box-shadow: 0 4px 10px rgba(71, 85, 105, 0.2);
    margin-left: 8px;
}

.btn-nav-logout:hover {
    background: #334155 !important;
    box-shadow: 0 6px 15px rgba(71, 85, 105, 0.3) !important;
    border-bottom: none !important;
    color: white !important;
}

/* Daftar Button */
.btn-nav {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(30, 86, 49, 0.2);
    border-bottom: none !important;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 86, 49, 0.3) !important;
    background: linear-gradient(135deg, var(--primary-light), var(--primary)) !important;
    border-bottom: none !important;
    color: white !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 6px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ==========================
   LAYOUT CONTAINERS
   ========================== */
.main-container {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ==========================
   HERO SECTION (Home Page)
   ========================== */
.hero-section {
    background: linear-gradient(135deg, rgba(30, 86, 49, 0.95), rgba(0, 137, 123, 0.9)), 
                url('data:image/svg+xml;base64,PHN2ZyB3aWR0aHA0AAAAAAAACA,AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...');
    padding: 120px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    color: var(--accent);
    font-weight: 600;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: white;
    color: var(--primary);
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.btn-hero-secondary {
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* ==========================
   FEATURES SECTION
   ========================== */
.section-padding {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    color: var(--teal);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(30, 86, 49, 0.1), rgba(0, 137, 123, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--primary);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.feature-text {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================
   COMMON FORM ELEMENTS
   ========================== */
.form-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.form-field {
    margin-bottom: 20px;
}
.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 14px;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: #fafbfc;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(0,137,123,0.1);
    background: white;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}
.btn-teal {
    background: linear-gradient(135deg, var(--teal), #00695c);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 137, 123, 0.2);
}
.btn-teal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 137, 123, 0.3);
}
.btn-outline {
    background: white;
    border: 1px solid var(--border);
    color: var(--muted);
}
.btn-outline:hover {
    background: #f8fafc;
    color: var(--text);
}

/* ==========================
   FOOTER
   ========================== */
.main-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 20px 30px;
    margin-top: auto;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.footer-brand {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}
.footer-text {
    font-size: 14px;
    margin-bottom: 20px;
}
.footer-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.footer-link:hover {
    text-decoration: underline;
}
.footer-copy {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 768px) {
    .top-nav {
        padding: 0 20px;
    }
    .menu-toggle {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border);
        display: none; /* Hidden by default */
        align-items: stretch;
        gap: 10px;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        width: 100%;
        padding: 12px 20px;
        margin: 0;
        border: none !important;
    }
    .nav-user-name {
        border-left: none !important;
        margin-left: 0 !important;
        padding-left: 16px !important;
    }
    .btn-nav-logout {
        border-left: none !important;
        margin-left: 0 !important;
        margin-top: 5px;
        border-radius: 8px !important;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .main-container {
        padding: 20px 15px;
    }
}

/* ==========================
   PHONE WRAPPER
   ========================== */
.phone-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-weight: 500;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.phone-wrapper input {
    flex: 1;
    border-radius: 0 10px 10px 0 !important;
    height: auto;
    box-sizing: border-box;
}

/* ==========================
   HEALTH TOGGLE (Tiada/Ada)
   ========================== */
.health-section {
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.health-label {
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
    color: var(--text);
    font-size: 14px;
}

.health-toggle {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 15px;
}

.health-toggle-label {
    display: block;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
    border-right: 1px solid var(--border);
}

.health-toggle-label:last-child {
    border-right: none;
}

.health-toggle input[type="radio"] {
    display: none;
}

.health-toggle input[type="radio"]:checked + .health-toggle-label {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.health-textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
    resize: vertical;
    background: #fafbfc;
}

.health-textarea[readonly] {
    background: #f1f5f9;
    color: var(--muted);
    cursor: not-allowed;
}

.health-textarea:not([readonly]) {
    background: white;
}

.health-textarea:focus:not([readonly]) {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0,137,123,0.1);
}

/* ==========================
   DYNAMIC TABLES (from step3)
   ========================== */
.dynamic-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.dynamic-table th, .dynamic-table td { border: 1px solid var(--border); padding: 8px; text-align: left; }
.dynamic-table th { background: #f8fafc; font-size: 13px; font-weight: 600; }
.dynamic-table input { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; background: white; }
.dynamic-table input:focus { outline: none; border-color: var(--teal); }
.btn-add-row { background: var(--primary); color: white; border: none; padding: 6px 12px; border-radius: 6px; font-size: 13px; cursor: pointer; font-weight: 600; }
.btn-add-row:hover { background: var(--primary-dark); }
.btn-remove-row { background: #fee2e2; color: #b91c1c; border: none; padding: 6px 12px; border-radius: 6px; font-size: 12px; cursor: pointer; font-weight: 600; }
.btn-remove-row:hover { background: #fecaca; }

/* ==========================
   DOCUMENT PREVIEW CARDS
   ========================== */
.doc-preview-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 8px;
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    max-width: 100%;
    margin-top: 10px;
}

.doc-preview-card:hover {
    border-color: var(--teal, #0f766e);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.doc-preview-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: #f1f5f9;
    flex-shrink: 0;
}

.doc-preview-icon.pdf {
    background: #fee2e2;
    color: #ef4444;
}

.doc-preview-icon.image {
    background: #ecfdf5;
    color: #10b981;
    overflow: hidden;
}

.doc-preview-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doc-preview-icon svg {
    width: 22px;
    height: 22px;
}

.doc-preview-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: left;
}

.doc-preview-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.doc-preview-action {
    font-size: 11px;
    color: #64748b;
    margin-top: 1px;
}

/* ==========================
   DIRECT IMAGE PREVIEWS
   ========================== */
.img-preview-anchor {
    display: inline-block;
    max-width: 100%;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border, #e2e8f0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.img-preview-anchor:hover {
    border-color: var(--teal, #0f766e);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    transform: scale(1.01);
}

.img-preview-direct {
    display: block;
    max-width: 250px;
    max-height: 180px;
    object-fit: contain;
    background: #f8fafc;
}

/* ==========================
   PAGE HEADER CARD (DASHBOARD STYLE)
   ========================== */
.student-header {
    background: white;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.student-header h2 {
    margin: 0 !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
.student-header .subtext {
    color: #64748b !important;
    font-size: 14px !important;
    margin-top: 4px !important;
}
.btn-permohonan {
    background: #1e5631;
    color: white;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn-permohonan:hover {
    background: #163d26;
}
.btn-permohonan.disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}
.btn-permohonan.disabled:hover {
    background: #cbd5e1;
}

/* Scroll Reveal Animation Styles */
.feature-card, .form-card, .card, .stat-card, .profile-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.feature-card.revealed, .form-card.revealed, .card.revealed, .stat-card.revealed, .profile-card.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Autosave Status Indicator */
.autosave-indicator {
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.autosave-indicator.saving {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.autosave-indicator.success {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.autosave-indicator.error {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Premium Upload Dropzone */
.upload-dropzone {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    background: #fdfdfd;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}
.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--primary);
    background: #f4faf6;
}
.upload-dropzone .upload-icon {
    font-size: 32px;
    transition: transform 0.2s ease;
}
.upload-dropzone:hover .upload-icon, .upload-dropzone.dragover .upload-icon {
    transform: scale(1.15);
}
.upload-dropzone .upload-text {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}
.upload-dropzone .upload-text span {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}
.upload-dropzone .upload-note {
    font-size: 11px;
    color: #94a3b8;
}

/* Upload Dropzone Loading State */
.upload-dropzone.uploading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}
.upload-dropzone.uploading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid var(--primary);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    top: calc(50% - 12px);
    left: calc(50% - 12px);
    z-index: 5;
}

/* Floating Status Toast */
#floating-status-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.floating-toast {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    width: 320px;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: slideInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.floating-toast.saving {
    border-left: 4px solid #2563eb;
}

.floating-toast.success {
    border-left: 4px solid #10b981;
}

.floating-toast.error {
    border-left: 4px solid #ef4444;
}

.floating-toast .toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 13.5px;
    color: #1e293b;
}

.floating-toast .toast-body {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.floating-toast .progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.floating-toast .progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #2563eb;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.floating-toast.success .progress-bar-fill {
    background-color: #10b981;
    width: 100% !important;
}