/* Smart Ledger Professional Premium Theme Stylesheet */

:root {
    --primary-color: #4f46e5;       /* Indigo */
    --primary-hover: #4338ca;
    --primary-light: #e0e7ff;
    --success-color: #10b981;       /* Emerald */
    --danger-color: #ef4444;        /* Rose */
    --warning-color: #f59e0b;       /* Amber */
    --bg-light: #f8fafc;            /* Slate light */
    --text-dark: #0f172a;           /* Slate 900 */
    --text-muted: #64748b;          /* Slate 500 */
    --border-color: #e2e8f0;         /* Slate 200 */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --card-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Sidebar Wrapper Styles */
#vue-app {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#wrapper {
    width: 100%;
    flex-grow: 1;
    overflow-x: hidden;
}

#page-content-wrapper {
    min-width: 0;
}

.sidebar-container {
    min-height: 100vh;
    box-shadow: 1px 0 0 var(--border-color);
    background-color: #ffffff;
}

/* List group styling */
.list-group-item-action {
    transition: all 0.15s ease-in-out;
    margin: 2px 0;
    border-radius: 8px !important;
}

.list-group-item-action:hover {
    background-color: rgba(79, 70, 229, 0.05) !important;
    color: var(--primary-color) !important;
}

.list-group-item-action.bg-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

/* Header heading */
.sidebar-heading {
    padding: 18px 16px;
}

/* Card Styling */
.card {
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    border-radius: 14px;
    background-color: #ffffff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--card-shadow-lg);
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

/* Forms & Inputs */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus, .form-select:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #334155;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 9px 16px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.15s;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.15);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.25);
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #f8fafc;
    color: #64748b;
    border-bottom: 1px solid var(--border-color);
}

.table td {
    font-size: 13.5px;
    color: #334155;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

/* Badge Tweaks */
.badge {
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
}

/* Login Layout */
.login-container {
    background: radial-gradient(circle at 50% 50%, #f1f5f9 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 15px;
}

.login-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border-color);
    padding: 40px;
    width: 100%;
    max-width: 440px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo .brand-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.login-logo h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    color: var(--text-dark);
}

.login-logo p {
    font-size: 13.5px;
    color: var(--text-muted);
    margin: 6px 0 0 0;
}

/* Autocomplete suggestion styles */
.autocomplete-container {
    position: relative;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: var(--card-shadow-lg);
    margin-top: 4px;
}

.autocomplete-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 13.5px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.autocomplete-suggestion:last-child {
    border-bottom: none;
}

.autocomplete-suggestion:hover {
    background-color: rgba(79, 70, 229, 0.05);
    color: var(--primary-color);
}

/* Toast/Flash Style Override */
.toast-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    background: #ffffff;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    border-top: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.toast-success {
    border-left-color: var(--success-color);
}

.toast-danger {
    border-left-color: var(--danger-color);
}

.toast-warning {
    border-left-color: var(--warning-color);
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
}

/* Custom cursor pointer */
.cursor-pointer {
    cursor: pointer;
}

/* User Suggested Login Styles */
:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --accent: #4cc9f0;
    --success: #4ade80;
    --dark: #1e293b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body.login-page-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px;
    color: var(--dark);
}

.login-container-custom {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: white;
}

.login-left-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right-custom {
    background: white;
    padding: 50px 40px;
}

.app-logo-custom {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.app-logo-custom i {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.app-logo-custom h1 {
    font-weight: 700;
    font-size: 2.2rem;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.features-list-custom {
    margin: 40px 0;
    padding-left: 0;
    list-style: none;
}

.features-list-custom li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.features-list-custom i {
    background: rgba(255, 255, 255, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 0.9rem;
}

.secure-badge-custom {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    margin-top: 20px;
    width: 100%;
}

.secure-badge-custom i {
    margin-right: 8px;
}

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

.login-header-custom h2 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.login-header-custom p {
    color: #64748b;
}

.form-control-custom {
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid var(--border);
    margin-bottom: 20px;
    transition: all 0.3s;
    width: 100%;
    display: block;
    font-size: 16px;
}

.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
    outline: none;
}

.btn-login-custom {
    background: var(--primary) !important;
    border: none;
    color: white !important;
    padding: 14px;
    font-weight: 600;
    border-radius: 12px;
    width: 100%;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.btn-login-custom:hover {
    background: var(--secondary) !important;
    transform: translateY(-2px);
    color: white !important;
}

.divider-custom {
    text-align: center;
    position: relative;
    margin: 25px 0;
    color: #94a3b8;
}

.divider-custom::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border);
}

.divider-custom::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border);
}

/* Offcanvas Sidebar tweaks */
.offcanvas {
    box-shadow: 10px 0 25px rgba(0, 0, 0, 0.05);
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
    #page-content-wrapper {
        width: 100vw;
    }
}
@media (max-width: 991.98px) {
    .login-left-custom {
        padding: 40px 30px;
    }
    .login-right-custom {
        padding: 40px 30px;
    }
}

@media print {
    .no-print {
        display: none !important;
    }
    #sidebar-wrapper {
        display: none !important;
    }
    #page-content-wrapper {
        min-height: auto !important;
        width: 100% !important;
    }
    body {
        background-color: #ffffff !important;
    }
}

.hover-bg-light:hover {
    background-color: rgba(79, 70, 229, 0.05) !important;
    color: var(--primary-color) !important;
}

.search-select .disabled {
    pointer-events: none;
    background-color: #f1f5f9;
    opacity: 0.6;
}
