/* Portal-specific styles for dealercloud Dashboard */

/* Reset margins and padding for full viewport coverage */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* Apply Roboto Font - loaded via link in HTML head */
body, * {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

/* Portal Landing Page Styles */
.portal-landing {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('/img/bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.portal-landing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.portal-landing-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.portal-landing-left {
    color: white;
}

.portal-landing-left h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.portal-landing-left p {
    font-size: 1.25rem;
    margin: 0 0 30px 0;
    opacity: 0.95;
    line-height: 1.6;
}

.portal-landing-logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.portal-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.portal-features svg {
    width: 24px;
    height: 24px;
    stroke: white;
    flex-shrink: 0;
}

.portal-login-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    margin: 0 auto;
}

.portal-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.portal-login-header .logo-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    stroke: #667eea;
}

.portal-login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px 0;
}

.portal-login-header p {
    color: #718096;
    margin: 0;
    font-size: 0.95rem;
}

.portal-form-group {
    margin-bottom: 20px;
}

.portal-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.portal-form-group label svg {
    width: 18px;
    height: 18px;
    stroke: #718096;
}

.portal-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.portal-form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.portal-form-group input.error {
    border-color: #e53e3e;
}

.portal-error {
    background: #fee;
    color: #c33;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #fcc;
    font-size: 0.9rem;
}

.portal-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.portal-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #4a5568;
}

.portal-forgot-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.portal-forgot-link:hover {
    text-decoration: underline;
}

.portal-btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.portal-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.portal-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.portal-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.portal-divider span {
    background: white;
    padding: 0 15px;
    color: #a0aec0;
    position: relative;
}

.portal-register-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.portal-register-link p {
    color: #718096;
    margin: 0;
    font-size: 0.9rem;
}

.portal-register-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.portal-register-link a:hover {
    text-decoration: underline;
}

@media (max-width: 968px) {
    .portal-landing-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    .portal-landing-left {
        text-align: center;
    }

    .portal-landing-left h1 {
        font-size: 2rem;
    }
    
    .portal-landing-left p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .portal-login-card {
        padding: 30px 20px;
    }

    .portal-landing-left h1 {
        font-size: 1.75rem;
    }

    .portal-landing-left p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .portal-landing-content {
        padding: 15px;
        gap: 20px;
    }
    
    .portal-features li {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
}

/* Dashboard Page Styles */
.dashboard-page {
    padding: 16px 16px 32px 16px;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 16px;
}

.dashboard-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.dashboard-header h1 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.dashboard-header p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.dashboard-header-actions {
    flex-shrink: 0;
}

/* Trial Banner */
.trial-banner {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.trial-banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.trial-banner-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.trial-banner-text {
    flex: 1;
}

.trial-banner-text h3 {
    margin: 0 0 6px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #78350f;
}

.trial-banner-text p {
    margin: 0;
    font-size: 0.875rem;
    color: #92400e;
}

.trial-banner-action {
    flex-shrink: 0;
}

/* Dashboard Stats Grid */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #374151;
    flex-shrink: 0;
}

.stat-icon {
    font-size: 3rem;
    line-height: 1;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
}

/* Dashboard Content */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dashboard-section {
    background: white;
    border-radius: 8px;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
}

.dashboard-section-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.dashboard-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.dashboard-section-header p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.action-buttons .btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.action-buttons .btn-primary {
    background: #111827;
    color: white;
    border: 1px solid #111827;
}

.action-buttons .btn-primary:hover {
    background: #1f2937;
    border-color: #1f2937;
}

.action-buttons .btn-secondary {
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.action-buttons .btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.action-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #374151;
    margin-bottom: 12px;
}

.action-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px 0;
}

.action-card p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Activity List */
.activity-list {
    min-height: 200px;
}

.activity-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.activity-empty h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 8px 0;
}

.activity-empty p {
    color: #718096;
    margin: 0;
    font-size: 0.95rem;
}

/* Account Info */
.account-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

.info-value {
    font-size: 0.95rem;
    color: #1a202c;
    font-weight: 600;
    text-align: right;
}

/* Subscription Info */
.subscription-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.subscription-status {
    margin-bottom: 8px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-trial {
    background: #eef2ff;
    color: #667eea;
}

.status-badge.status-active {
    background: #d1fae5;
    color: #059669;
}

.status-badge.status-expired {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.status-cancelled {
    background: #f3f4f6;
    color: #6b7280;
}

.subscription-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
}

.detail-label {
    font-size: 0.9rem;
    color: #718096;
}

.detail-value {
    font-size: 0.95rem;
    color: #1a202c;
    font-weight: 600;
}

/* Portal Top Navigation */
.portal-top-nav {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    height: 64px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.portal-top-nav-container {
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: 0.3px;
}

.portal-brand-text {
    color: #111827;
    font-weight: 700;
}

.portal-brand-separator {
    color: #9ca3af;
    font-weight: 400;
}

.portal-brand-dealer {
    color: #374151;
}

.portal-brand-portal {
    color: #6b7280;
    font-weight: 500;
}

/* User Menu Dropdown */
.portal-user-menu-wrapper {
    position: relative;
}

.portal-user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.portal-user-menu-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.portal-user-menu-btn .menu-icon,
.portal-user-menu-btn .chevron-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.portal-user-menu-btn .chevron-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.portal-user-menu-btn.active .chevron-icon {
    transform: rotate(180deg);
}

.portal-user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 1001;
}

.portal-user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f9fafb;
    color: #111827;
}

.dropdown-item.active {
    background: #f3f4f6;
    color: #111827;
    font-weight: 600;
}

.dropdown-item.active svg {
    color: #111827;
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    color: #6b7280;
}

.dropdown-item:hover svg {
    color: #374151;
}

.dropdown-item-danger {
    color: #dc2626;
}

.dropdown-item-danger:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.dropdown-item-danger svg {
    color: #dc2626;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

/* Portal Layout */
.portal-layout {
    display: flex;
    margin-top: 64px;
    min-height: calc(100vh - 64px);
}

/* Sidebar */
.portal-sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.portal-sidebar-nav {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
    border-left: 3px solid transparent;
}

.sidebar-item:hover {
    background: #f9fafb;
    color: #374151;
}

.sidebar-item.active {
    background: #f3f4f6;
    color: #111827;
    border-left-color: #111827;
    font-weight: 600;
}

.sidebar-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    flex-shrink: 0;
}

.sidebar-item .coming-soon {
    margin-left: auto;
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
    font-style: italic;
}

/* Main Content */
.portal-main-content {
    flex: 1;
    margin-left: 260px;
    background: #f9fafb;
    min-height: calc(100vh - 64px);
}

/* Portal Navbar Overrides */
.portal-navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.portal-navbar .navbar-link {
    color: #4a5568;
    font-weight: 500;
    transition: color 0.2s;
}

.portal-navbar .navbar-link:hover,
.portal-navbar .navbar-link.active {
    color: #667eea;
}

.portal-navbar .navbar-link:last-child {
    color: #e53e3e;
}

.portal-navbar .navbar-link:last-child:hover {
    color: #c53030;
}

/* Login/Register Page Styles (Portal) */
.login-page,
.register-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container,
.register-container {
    width: 100%;
    max-width: 450px;
}

.login-card,
.register-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header,
.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1,
.register-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 10px 0;
}

.login-header p,
.register-header p {
    color: #718096;
    margin: 0;
    font-size: 0.95rem;
}

/* Form Styles */
.login-form,
.register-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input.error,
.form-group select.error {
    border-color: #e53e3e;
}

.error-message {
    display: block;
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Divider */
.login-divider,
.register-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.login-divider::before,
.register-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.login-divider span,
.register-divider span {
    background: white;
    padding: 0 15px;
    color: #a0aec0;
    position: relative;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.social-btn {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.2s;
}

.social-btn:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

/* Footer Links */
.login-footer,
.register-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.login-footer p,
.register-footer p {
    color: #718096;
    margin: 0;
    font-size: 0.9rem;
}

.link-primary {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.link-primary:hover {
    text-decoration: underline;
}

/* Register Form Specific */
.form-row {
    margin-bottom: 20px;
}

.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.plan-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.form-hint {
    font-size: 0.85rem;
    color: #a0aec0;
    margin: 8px 0 0 0;
}

.checkbox-group {
    margin-bottom: 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .portal-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .portal-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .portal-main-content {
        margin-left: 0;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .dashboard-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .dashboard-section {
        padding: 20px;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .trial-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .trial-banner-action {
        width: 100%;
    }
    
    .trial-banner-action .btn {
        width: 100%;
    }
    
    .login-card,
    .register-card {
        padding: 30px 20px;
    }
    
    .form-row-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dashboard-header h1 {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Profile Page Styles */
.profile-page {
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
    background: #f7fafc;
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-header {
    padding: 32px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.profile-header h1 {
    margin: 0 0 8px 0;
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
}

.profile-header p {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
}

.profile-form {
    padding: 32px;
}

.profile-form-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Profile Picture Upload */
.profile-picture-section {
    margin-bottom: 8px;
}

.profile-picture-upload {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-picture-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e2e8f0;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.profile-picture-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-picture-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e0;
}

.upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.upload-area:hover {
    border-color: #667eea;
    background: #edf2f7;
}

.upload-area.dragover {
    border-color: #667eea;
    background: #e6f3ff;
    transform: scale(1.02);
}

.upload-area-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-text {
    margin: 0 0 8px 0;
    color: #4a5568;
    font-size: 1rem;
}

.upload-link {
    color: #667eea;
    font-weight: 500;
    text-decoration: underline;
}

.upload-hint {
    margin: 0;
    color: #a0aec0;
    font-size: 0.875rem;
}

/* Form Styles */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input.error {
    border-color: #e53e3e;
}

.form-input.error:focus {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.error-message {
    display: block;
    margin-top: 6px;
    color: #e53e3e;
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

/* Alert Styles */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.alert-success {
    background: #f0fff4;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.alert-error {
    background: #fff5f5;
    color: #742a2a;
    border: 1px solid #fc8181;
}

/* Responsive Profile Page */
@media (max-width: 768px) {
    .profile-page {
        padding: 20px 10px;
    }
    
    .profile-header {
        padding: 24px 20px;
    }
    
    .profile-header h1 {
        font-size: 1.5rem;
    }
    
    .profile-form {
        padding: 24px 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .upload-area {
        padding: 30px 20px;
    }
}

/* Settings Page Styles */
.settings-page {
    padding: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.settings-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.settings-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.settings-header h1 {
    margin: 0 0 8px 0;
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
}

.settings-header p {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
}

/* Tabs */
.settings-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 32px;
    gap: 0;
    background: #ffffff;
}

.settings-tab {
    padding: 16px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -1px;
}

.settings-tab:hover {
    color: #111827;
    background: #f9fafb;
}

.settings-tab.active {
    color: #111827;
    border-bottom-color: #111827;
    font-weight: 600;
}

/* Tab Content */
.settings-tab-content {
    display: none;
    padding: 32px;
}

.settings-tab-content.active {
    display: block;
}

.settings-form {
    max-width: 900px;
}

.form-section {
    margin-bottom: 32px;
}

.logo-upload-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.logo-preview {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e0;
}

/* Staff Section */
.staff-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid #e2e8f0;
}

.staff-section h2 {
    margin: 0 0 24px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
}

.staff-list-section h2 {
    margin: 0 0 24px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
}

.staff-table {
    overflow-x: auto;
}

.staff-table table {
    width: 100%;
    border-collapse: collapse;
}

.staff-table thead {
    background: #f7fafc;
}

.staff-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
}

.staff-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
}

.staff-table tbody tr:hover {
    background: #f7fafc;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-active {
    background: #c6f6d5;
    color: #22543d;
}

.status-badge.status-inactive {
    background: #fed7d7;
    color: #742a2a;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-warning {
    background: #fefcbf;
    color: #744210;
}

.badge-success {
    background: #c6f6d5;
    color: #22543d;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-danger {
    background: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background: #c53030;
}

.empty-state {
    padding: 48px 24px;
    text-align: center;
    color: #718096;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* Restricted Access Message */
.restricted-access-message {
    padding: 80px 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.restricted-access-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #92400e;
}

.restricted-access-icon svg {
    width: 64px;
    height: 64px;
}

.restricted-access-message h2 {
    margin: 0 0 16px 0;
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
}

.restricted-access-message > p {
    margin: 0 0 12px 0;
    font-size: 1.125rem;
    color: #4a5568;
    line-height: 1.6;
}

.restricted-access-detail {
    margin: 16px 0 32px 0 !important;
    font-size: 1rem !important;
    color: #718096 !important;
}

.restricted-access-message .btn {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .restricted-access-message {
        padding: 60px 20px;
    }
    
    .restricted-access-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 24px;
    }
    
    .restricted-access-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .restricted-access-message h2 {
        font-size: 1.5rem;
    }
}

/* Form Section Divider */
.form-section-divider {
    margin: 40px 0 24px;
    padding-top: 32px;
    border-top: 2px solid #e2e8f0;
}

.form-section-divider h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
}

/* Responsive Settings */
@media (max-width: 768px) {
    .settings-page {
        padding: 16px;
    }
    
    .settings-header {
        padding: 24px 20px 16px;
    }
    
    .settings-tabs {
        padding: 0 20px;
    }
    
    .settings-tab {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .settings-tab-content {
        padding: 24px 20px;
    }
    
    .logo-preview {
        width: 150px;
        height: 150px;
    }
    
    .staff-table {
        font-size: 0.875rem;
    }
    
    .staff-table th,
    .staff-table td {
        padding: 8px;
    }
}

/* Billing Page Styles */
.billing-page {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.billing-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.billing-header {
    padding: 32px 40px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.billing-header h1 {
    margin: 0 0 8px 0;
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
}

.billing-header p {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
}

/* Balance Card */
.balance-card {
    margin: 24px 40px;
    background: #111827;
    border-radius: 12px;
    padding: 32px;
    color: white;
}

.balance-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-info h3 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.balance-amount {
    margin: 0 0 4px 0;
    font-size: 3rem;
    font-weight: 700;
}

.balance-label {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.balance-icon {
    width: 80px;
    height: 80px;
    opacity: 0.3;
}

.balance-icon svg {
    width: 100%;
    height: 100%;
}

/* Billing Tabs */
.billing-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 40px;
    background: #ffffff;
}

.billing-tab {
    padding: 16px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
    margin-bottom: -1px;
}

.billing-tab:hover {
    color: #111827;
    background: #f9fafb;
}

.billing-tab.active {
    color: #111827;
    border-bottom-color: #111827;
    background: #ffffff;
    font-weight: 600;
}

/* Billing Tab Content */
.billing-tab-content {
    display: none;
    padding: 40px;
}

.billing-tab-content.active {
    display: block;
}

.billing-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.overview-section h2 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}

/* Package Cards */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.package-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    position: relative;
    transition: all 0.3s;
    background: white;
}

.package-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.package-card.current {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.package-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.package-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.package-price {
    margin: 0 0 12px 0;
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.package-description {
    margin: 0 0 20px 0;
    color: #64748b;
    line-height: 1.6;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.package-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: #475569;
}

.package-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 700;
}

.package-card .btn {
    width: 100%;
    margin-top: 8px;
}

/* Payment Form */
.add-balance-section h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}

.add-balance-section > p {
    margin: 0 0 32px 0;
    color: #64748b;
}

.payment-form {
    max-width: 600px;
}

/* Transactions */
.transactions-section h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}

.transactions-section > p {
    margin: 0 0 32px 0;
    color: #64748b;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.transaction-item {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.transaction-type {
    font-size: 1.25rem;
    font-weight: 700;
}

.transaction-type.type-credit {
    color: #10b981;
}

.transaction-type.type-debit {
    color: #ef4444;
}

.transaction-description {
    color: #64748b;
    font-size: 0.9rem;
}

.transaction-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.transaction-date {
    color: #64748b;
    font-size: 0.875rem;
}

.transaction-balance {
    color: #111827;
    font-weight: 600;
    font-size: 0.9rem;
}

.transactions-table-wrapper {
    overflow-x: auto;
    margin-top: 24px;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.transactions-table thead {
    background: #f8f9fa;
}

.transactions-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #111827;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transactions-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.transactions-table tbody tr:hover {
    background: #f8f9fa;
}

.transaction-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.transaction-type-badge.type-credit {
    background: #d1fae5;
    color: #065f46;
}

.transaction-type-badge.type-debit {
    background: #fee2e2;
    color: #991b1b;
}

.amount-credit {
    color: #10b981;
    font-weight: 600;
}

.amount-debit {
    color: #ef4444;
    font-weight: 600;
}

/* Invoices */
.invoices-section h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}

.invoices-section > p {
    margin: 0 0 32px 0;
    color: #64748b;
}

.invoices-table-wrapper {
    overflow-x: auto;
    margin-top: 24px;
}

.invoices-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.invoices-table thead {
    background: #f8f9fa;
}

.invoices-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #111827;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.invoices-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.invoices-table tbody tr:hover {
    background: #f8f9fa;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* Responsive Billing */
@media (max-width: 768px) {
    .billing-page {
        padding: 16px;
    }
    
    .billing-header {
        padding: 24px 20px;
    }
    
    .billing-header h1 {
        font-size: 1.5rem;
    }
    
    .balance-card {
        margin: 16px 20px;
        padding: 24px;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    .balance-icon {
        width: 60px;
        height: 60px;
    }
    
    .billing-tabs {
        padding: 0;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .billing-tab {
        padding: 12px 16px;
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    .billing-tab-content {
        padding: 24px 20px;
    }
    
    .billing-overview {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .transaction-meta {
        align-items: flex-start;
        width: 100%;
    }
    
    .transactions-table,
    .invoices-table {
        font-size: 0.875rem;
    }
    
    .transactions-table th,
    .transactions-table td,
    .invoices-table th,
    .invoices-table td {
        padding: 8px;
    }
}

