/* User Layout Styles */
:root {
    --sidebar-width: 280px;
    --sidebar-bg: #1a1d29;
    --sidebar-text: #ffffff;
    --header-bg: #f8f9fa;
    --header-height: 70px;
    --content-bg: #f5f6fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.user-layout {
    display: flex;
    min-height: 100vh;
    background: var(--content-bg);
}

/* Sidebar Styles */
.user-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.user-sidebar::-webkit-scrollbar {
    width: 6px;
}

.user-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.user-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.user-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.sidebar-logo {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.sidebar-logo:hover {
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
}

.sidebar-logo img {
    max-height: 50px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.sidebar-logo:has(.logo-text) {
    justify-content: flex-start;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text-main {
    font-size: 16px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.logo-text-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-section {
    margin-bottom: 30px;
}

.menu-section-title {
    padding: 0 20px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin: 0;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #667eea;
    color: white;
}

.menu-link.active {
    background: rgba(102, 126, 234, 0.2);
    border-left-color: #667eea;
}

.menu-link i:first-child {
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.menu-link span {
    flex: 1;
    font-size: 14px;
}

/* Header Styles */
.user-header {
    background: var(--header-bg);
    height: var(--header-height);
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 30px;
    height: 100%;
    width: 100%;
}

.header-right {
    padding-right: 30px;
}

.header-logo .logo-text-main {
    font-size: 18px;
    font-weight: 700;
    color: #1a1d29;
}

.header-logo .logo-text-sub {
    font-size: 12px;
    color: #6c757d;
}

.header-left .sidebar-toggle {
    color: #495057 !important;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.header-left .sidebar-toggle:hover {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.1);
}

.header-right {
    gap: 15px;
}

.header-right .btn-link {
    color: #495057 !important;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.header-right .btn-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #667eea !important;
}

.header-right .btn-outline-light {
    border-color: #dee2e6 !important;
    color: #495057 !important;
    background: white !important;
}

.header-right .btn-outline-light:hover {
    background: #f8f9fa !important;
    border-color: #667eea !important;
    color: #667eea !important;
}

/* Language Switcher in Header */
.header-right .language-switcher .btn-outline-light {
    border-color: #dee2e6 !important;
    color: #495057 !important;
    background: white !important;
    padding: 6px 12px;
}

.header-right .language-switcher .btn-outline-light:hover {
    background: #f8f9fa !important;
    border-color: #667eea !important;
    color: #667eea !important;
}

.header-right .language-switcher .btn-outline-light:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.user-profile {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.user-profile:hover {
    opacity: 0.8;
}

.dropdown .user-profile {
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 25px;
}

.profile-avatar {
    color: #667eea;
}

.profile-name {
    font-size: 14px;
    font-weight: 500;
    color: #495057 !important;
}

/* User Profile Dropdown */
.header-right .dropdown-menu {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-right .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.header-right .dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.header-right .dropdown-item i {
    width: 20px;
    text-align: center;
}

.header-right .dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545 !important;
}

.header-right .dropdown-divider {
    margin: 8px 0;
    border-color: #e0e0e0;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: calc(100% - var(--sidebar-width));
}

.content-wrapper {
    flex: 1;
    padding: 30px;
    position: relative;
}

/* Login Form Styles */
.user-form-container {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.user-form-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="%231a1d29"/><rect width="100%" height="100%" fill="url(%23grid)"/><circle cx="200" cy="150" r="100" fill="rgba(102,126,234,0.1)"/><circle cx="800" cy="400" r="150" fill="rgba(118,75,162,0.1)"/><circle cx="1000" cy="200" r="80" fill="rgba(102,126,234,0.1)"/></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 0;
}

.user-form-box {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 450px;
    width: 100%;
}

.user-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1d29;
    margin-bottom: 8px;
}

.user-form-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 30px;
}

.user-form-group {
    margin-bottom: 20px;
}

.user-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1d29;
    margin-bottom: 8px;
}

.user-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.user-form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.user-form-input-group {
    position: relative;
}

.user-form-input-group .user-form-input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #667eea;
}

.user-form-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.user-form-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.user-form-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.user-form-notice-title {
    font-weight: 600;
    color: #856404;
    margin-bottom: 8px;
    font-size: 14px;
}

.user-form-notice-text {
    font-size: 13px;
    color: #856404;
    line-height: 1.6;
    margin: 0;
}

.user-form-notice-greeting {
    font-size: 13px;
    color: #f0ad4e;
    margin-top: 10px;
    font-style: italic;
}

.user-form-button {
    width: 100%;
    padding: 14px;
    background: #1a1d29;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.user-form-button:hover {
    background: #2d3142;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-form-button:active {
    transform: translateY(0);
}

.user-form-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #6c757d;
}

.user-form-footer-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.user-form-footer-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Error Messages */
.user-form-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.user-form-input.is-invalid {
    border-color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .user-sidebar {
        transform: translateX(-100%);
    }
    
    .user-sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header-logo {
        display: none !important;
    }
    
    .user-form-box {
        padding: 30px 20px;
    }
}

/* Footer */
.user-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6c757d;
    z-index: 1;
}

/* Payment Modal Styles */
.payment-card-hover {
    transition: all 0.3s ease;
}

.payment-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.payment-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

