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

:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-glow: rgba(37, 99, 235, 0.24);
    --primary-soft: rgba(37, 99, 235, 0.08);
    --primary-bg: #EFF6FF;
    --primary-bg-strong: #DBEAFE;
    --bg-gradient-start: #EEF2FF;
    --bg-gradient-end: #E0E7FF;
    --app-bg: #F7F8FA;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --text-label: #64748B;
    --border-color: rgba(255, 255, 255, 0.5);
    --line-color: #E5E7EB;
    --surface: #FFFFFF;
    --surface-soft: #F8FAFC;
    --surface-input: #F9FAFB;
    --success: #10B981;
    --success-bg: #ECFDF5;
    --success-border: #6EE7B7;
    --error: #EF4444;
    --error-bg: #FEF2F2;
    --error-border: #FCA5A5;
    --error-hover: #DC2626;
    --upload-bg: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    --upload-border: #CBD5E1;
    --table-header-bg: #F9FAFB;
    --table-row-hover: #F9FAFB;
    --shadow-sidebar: rgba(15, 23, 42, 0.04);
    --shadow-card: rgba(0, 0, 0, 0.1);
    --shadow-header: rgba(15, 23, 42, 0.04);
    --color-scheme: light;
    color-scheme: light;
}

[data-theme="dark"] {
    --primary: #60A5FA;
    --primary-hover: #93C5FD;
    --primary-glow: rgba(96, 165, 250, 0.3);
    --primary-soft: rgba(96, 165, 250, 0.1);
    --primary-bg: rgba(96, 165, 250, 0.1);
    --primary-bg-strong: rgba(96, 165, 250, 0.18);
    --bg-gradient-start: #0F172A;
    --bg-gradient-end: #1E293B;
    --app-bg: #0F172A;
    --card-bg: rgba(30, 41, 59, 0.85);
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --text-label: #94A3B8;
    --border-color: rgba(148, 163, 184, 0.15);
    --line-color: #334155;
    --surface: #1E293B;
    --surface-soft: #253349;
    --surface-input: #1E293B;
    --success: #34D399;
    --success-bg: rgba(52, 211, 153, 0.1);
    --success-border: rgba(52, 211, 153, 0.3);
    --error: #F87171;
    --error-bg: rgba(248, 113, 113, 0.1);
    --error-border: rgba(248, 113, 113, 0.3);
    --error-hover: #EF4444;
    --upload-bg: linear-gradient(180deg, #1E293B 0%, #253349 100%);
    --upload-border: #475569;
    --table-header-bg: #253349;
    --table-row-hover: rgba(148, 163, 184, 0.06);
    --shadow-sidebar: rgba(0, 0, 0, 0.2);
    --shadow-card: rgba(0, 0, 0, 0.3);
    --shadow-header: rgba(0, 0, 0, 0.15);
    --color-scheme: dark;
    color-scheme: dark;
}

/* Theme toggle button */
.theme-toggle {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line-color);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    height: 36px;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
    width: 36px;
}

.theme-toggle:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(15deg);
}

.theme-toggle svg {
    transition: transform 0.4s ease;
}

.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: block; }

[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }

/* Login page toggle positioning */
.login-theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
}

/* Smooth transition for theme switch */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

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

body {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body.dashboard-page {
    align-items: stretch;
    background: var(--app-bg);
    justify-content: flex-start;
    overflow-x: hidden;
    padding: 0;
}

.app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    background: linear-gradient(180deg, #0F172A 0%, #0B1120 100%);
    border-right: 1px solid #1E293B;
    flex: 0 0 280px;
    height: 100vh;
    overflow-y: auto;
    padding: 20px 16px;
    position: sticky;
    top: 0;
    z-index: 2;
    color: #E2E8F0;
    transition: margin-left 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar.sidebar-hidden {
    margin-left: -280px;
    opacity: 0;
}

.sidebar-brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px 16px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 12px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding: 0 8px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.brand-text strong {
    display: block;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 1.2;
}

.brand-text span {
    color: #94A3B8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.side-nav {
    display: grid;
    gap: 16px;
}

.side-section {
    display: grid;
    gap: 8px;
}

/* Button reset for toggle parents */
button.side-parent {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    width: 100%;
}

.side-parent {
    align-items: center;
    display: flex;
    font-size: 13px;
    font-weight: 600;
    color: #94A3B8;
    padding: 9px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    gap: 10px;
    text-decoration: none;
}

.side-parent:hover {
    color: #E2E8F0;
    background: rgba(255, 255, 255, 0.04);
}

.side-parent.is-active {
    color: #FFFFFF;
    background: rgba(99, 102, 241, 0.08);
}

.chevron-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #94A3B8;
}

.side-section.is-open > .side-parent .chevron-icon {
    transform: rotate(90deg);
}

/* Tree-style Submenus */
.side-tree {
    list-style: none;
    padding: 0 0 0 14px;
    margin: 0;
    overflow: hidden;
    transition: height 0.3s ease, opacity 0.25s ease;
}

.tree-group {
    position: relative;
    padding-left: 20px;
    margin-top: 8px;
}

/* Vertical line for the tree */
.tree-group::before {
    content: '';
    position: absolute;
    left: 0;
    top: -8px;
    bottom: 0;
    width: 1px;
    background: #334155;
}

/* Horizontal line to the group label */
.tree-group::after {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 12px;
    height: 1px;
    background: #334155;
}

.tree-label {
    display: block;
    color: #94A3B8;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 0 8px;
}

.tree-leaves {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tree-leaves li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 4px;
}

/* Vertical line connecting leaves */
.tree-leaves li::before {
    content: '';
    position: absolute;
    left: -20px;
    top: -20px;
    bottom: 0;
    width: 1px;
    background: #334155;
}

/* Stop vertical line on last item */
.tree-leaves li:last-child::before {
    bottom: auto;
    height: 34px;
}

/* Horizontal line to leaf */
.tree-leaves li::after {
    content: '';
    position: absolute;
    left: -20px;
    top: 14px;
    width: 12px;
    height: 1px;
    background: #334155;
}

.tree-leaf {
    position: relative;
    display: block;
    color: #94A3B8;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Small circle prefix for leaves */
.tree-leaf::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 12px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    border: 1px solid #64748B;
    background: transparent;
    transition: all 0.2s ease;
}

.tree-leaf:hover {
    color: #FFFFFF;
}

.tree-leaf.is-active {
    background: rgba(99, 102, 241, 0.15);
    color: #818CF8;
}

.tree-leaf.is-active::before {
    background: #818CF8;
    border-color: #818CF8;
}

.dashboard-main {
    background: var(--app-bg);
    flex: 1;
    min-width: 0;
}

/* Glassmorphism Card */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 40px -10px var(--shadow-card);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease;
}

.card-large {
    max-width: 900px;
}

.dashboard-page .card-large {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 28px 32px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.dashboard-header {
    background: var(--surface);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px var(--shadow-header);
    margin-bottom: 24px;
    padding: 18px 20px;
}

.dashboard-header.flex-between {
    margin-bottom: 24px;
}

.dashboard-header h2 {
    font-size: 24px;
    line-height: 1.25;
    margin-top: 4px;
}

.page-context {
    color: var(--text-label);
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Header & Typography */
h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
    text-align: center;
}

p.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 15px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--line-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: var(--surface-input);
    color: var(--text-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.mode-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.mode-option {
    display: block;
    cursor: pointer;
}

.mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mode-option span {
    display: block;
    min-height: 72px;
    padding: 14px 16px;
    border: 2px solid var(--line-color);
    border-radius: 8px;
    background: var(--surface);
    transition: all 0.2s ease;
}

.mode-option strong,
.mode-option small {
    display: block;
}

.mode-option strong {
    margin-bottom: 6px;
    font-size: 14px;
}

.mode-option small {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.mode-option input:checked + span {
    border-color: var(--primary);
    background: var(--primary-bg);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: var(--error-hover);
}

.btn-inline {
    font-size: 14px;
    padding: 9px 16px;
    width: auto;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--upload-border);
    border-radius: 8px;
    display: block;
    min-height: 220px;
    padding: 54px 24px;
    text-align: center;
    background: var(--upload-bg);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.upload-icon {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary);
}

.upload-title {
    font-size: 16px;
    font-weight: 600;
}

.upload-hint {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 8px;
}

.file-input {
    display: none;
}

.template-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.template-links a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.template-links a:hover {
    text-decoration: underline;
}

/* Data Table */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 8px;
    border: 1px solid var(--line-color);
}

table {
    width: 100%;
    min-width: 1000px; /* Allow scrolling if too small */
    border-collapse: collapse;
    background: var(--surface);
}

th, td {
    padding: 10px 12px;
    text-align: left;
    font-size: 13px;
    line-height: 1.35;
    border-bottom: 1px solid var(--line-color);
    vertical-align: top;
}

th {
    background: var(--table-header-bg);
    font-weight: 600;
    color: var(--text-muted);
}

.filter-input, .filter-input-invoice, .column-filter {
    width: 100%;
    padding: 8px 10px;
    margin-top: 8px;
    border: 1px solid var(--line-color);
    border-radius: 6px;
    background: var(--surface-input);
    color: var(--text-main);
    font-size: 12px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.filter-input:focus, .filter-input-invoice:focus, .column-filter:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

tr:hover {
    background: var(--table-row-hover);
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid var(--error-border);
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-border);
}

/* Layout utilities */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.nav-links {
    align-items: center;
    display: flex;
    gap: 12px;
}

.nav-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    text-decoration: underline;
}

.btn-icon {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    height: 36px;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
    width: 36px;
}

.btn-icon:hover {
    background: var(--primary-bg);
    color: var(--primary);
    border-color: var(--primary);
}

.user-greeting {
    color: var(--text-muted);
    font-size: 14px;
    margin-right: 0;
}

.content-subtitle {
    margin-bottom: 16px;
    max-width: 1120px;
    text-align: left;
}

.import-form {
    background: var(--surface);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    max-width: 1120px;
    padding: 22px;
}

.preview-header {
    margin-bottom: 10px;
}

.table-note {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
}

.process-form {
    border-top: 1px solid var(--line-color);
    margin-top: 30px;
    padding-top: 20px;
}

.empty-panel {
    background: var(--surface);
    border: 1px solid var(--line-color);
    border-radius: 8px;
    max-width: 720px;
    padding: 28px;
}

.empty-panel h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-panel p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        border-bottom: 1px solid var(--line-color);
        border-right: 0;
        flex: none;
        height: auto;
        padding: 16px;
        position: relative;
        width: 100%;
    }

    .sidebar-brand {
        margin-bottom: 14px;
        padding: 0 4px 14px;
    }

    .side-submenus {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body.dashboard-page {
        padding: 0;
    }

    .dashboard-page .card-large {
        min-height: 100vh;
        padding: 16px;
        border-radius: 0;
    }

    .flex-between {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        display: grid;
        gap: 6px;
    }

    .user-greeting {
        margin-right: 0;
    }

    .side-submenus {
        grid-template-columns: 1fr;
    }

    th, td {
        padding: 8px;
        font-size: 12px;
    }

    .mode-selector {
        grid-template-columns: 1fr;
    }

    .import-form {
        padding: 16px;
    }

    .upload-area {
        min-height: 190px;
        padding: 42px 18px;
    }
}

/* --- Login Page Enhancements --- */
body.login-body {
    background: var(--app-bg);
    overflow: hidden;
}

.login-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: #8B5CF6;
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
    animation-direction: reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #10B981;
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
    opacity: 0.4;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(50px, -50px) rotate(120deg) scale(1.1); }
    66% { transform: translate(-20px, 20px) rotate(240deg) scale(0.9); }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-card {
    width: 100%;
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.brand-icon-large {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.login-header h1 {
    font-size: 26px;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.login-header .subtitle {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Floating Label Inputs */
.floating-label-group {
    position: relative;
    margin-bottom: 24px;
}

.floating-label-group .form-control {
    height: 56px;
    padding: 20px 16px 8px;
    border-radius: 12px;
    background: var(--surface-input);
    border: 2px solid transparent;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02) inset;
}

.floating-label-group .form-control:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 4px 12px var(--primary-soft);
}

.floating-label-group label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.2s ease;
    margin-bottom: 0;
    font-weight: 400;
}

.floating-label-group .form-control:focus ~ label,
.floating-label-group .form-control:not(:placeholder-shown) ~ label {
    top: 14px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.btn-glow {
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    margin-top: 32px;
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.btn-glow:hover::after {
    opacity: 1;
    transform: rotate(30deg) translate(50%, 50%);
}

.icon-arrow {
    transition: transform 0.2s ease;
}

.btn-glow:hover .icon-arrow {
    transform: translateX(4px);
}

.login-footer {
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    opacity: 0.8;
}

.shake-animation {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Status Badge Styles */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.status-draft {
    background-color: var(--primary-bg-strong);
    color: var(--primary);
}

.status-posted {
    background-color: var(--success-bg);
    color: var(--success);
}

.status-cancel {
    background-color: var(--error-bg);
    color: var(--error);
}
