/* Elevex AMC - Powered by Ambivare Solutions */
/* Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #D4AF37;
    --primary-dark: #B8960F;
    --secondary: #6B7280;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --border: #E5E7EB;
    --bg-light: #F3F4F6;
    --bg-card: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Dark Mode - Pure Black AMOLED */
body.dark-mode {
    --bg-light: #000000;
    --bg-card: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border: #1a1a1a;
    --shadow: 0 1px 3px 0 rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(255, 255, 255, 0.1);
}

body.dark-mode .login-screen {
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
}

body.dark-mode .header {
    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
}

body.dark-mode .bottom-nav {
    background: #0a0a0a;
    border-top: 1px solid var(--border);
}

body.dark-mode .card,
body.dark-mode .stat-card,
body.dark-mode .amc-item,
body.dark-mode .modal-content,
body.dark-mode .login-card {
    background: #0a0a0a;
    border-color: var(--border);
}

body.dark-mode .search-bar {
    background: #0a0a0a;
    border-color: var(--border);
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #1a1a1a;
    color: var(--text-primary);
    border-color: var(--border);
}

body.dark-mode .chip {
    background: #1a1a1a;
    color: var(--text-secondary);
}

body.dark-mode .chip.active {
    background: var(--primary);
    color: #000000;
}

body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    background: #0a0a0a;
    border-color: var(--border);
}

body.dark-mode .modal-title {
    color: var(--text-primary);
}

body.dark-mode .settings-item,
body.dark-mode .config-card {
    background: #0a0a0a;
    border-color: var(--border);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Login Screen */
.login-screen {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Animated background particles */
.login-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    animation: moveBackground 20s linear infinite;
    opacity: 0.5;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.login-screen.hidden {
    display: none;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3), 0 0 1px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    animation: slideInUp 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.logo-image {
    max-width: 120px;
    max-height: 60px;
    margin-bottom: 12px;
    object-fit: contain;
}

.logo h1 {
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.logo p {
    color: var(--text-secondary);
    font-size: 14px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: white;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Main App */
.app {
    display: none;
    min-height: 100vh;
    padding-bottom: 70px;
}

.app.active {
    display: block;
}

/* Header */
.header {
    background: white;
    padding: 16px 20px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.header h2 {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 700;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 13px;
}

.dark-mode-toggle {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.dark-mode-toggle:hover {
    background: rgba(212, 175, 55, 0.1);
}

.dark-mode-toggle:active {
    transform: scale(0.95);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

/* Content */
.content {
    padding: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.stat-card .icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-card .label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

/* AMC List */
.amc-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    border-left: 4px solid var(--primary);
}

.amc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.amc-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.amc-client {
    font-size: 13px;
    color: var(--text-secondary);
}

.amc-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #D1FAE5;
    color: #065F46;
}

.status-expiring {
    background: #FEF3C7;
    color: #92400E;
}

.status-expired {
    background: #FEE2E2;
    color: #991B1B;
}

.status-pending {
    background: #E0E7FF;
    color: #3730A3;
}

.amc-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.amc-detail {
    font-size: 12px;
}

.amc-detail-label {
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.amc-detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

.amc-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 80px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

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

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

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

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

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

.btn:active {
    transform: scale(0.95);
}

/* Form */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    transition: all 0.3s;
}

.fab:active {
    transform: scale(0.9);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s;
    flex: 1;
    border: none;
    background: none;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item .icon {
    font-size: 22px;
}

.nav-item .label {
    font-size: 11px;
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 2px solid var(--border);
    display: flex;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background: white;
}

/* Search Bar */
.search-bar {
    position: relative;
    margin-bottom: 16px;
}

.search-bar input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}

.search-bar .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-secondary);
}

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.chip {
    padding: 6px 14px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
}

.chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-secondary);
}

.empty-state .icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 14px;
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--text-primary);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    max-width: calc(100% - 40px);
}

.toast.success {
    background: var(--success);
}

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

.toast.warning {
    background: var(--warning);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Badge */
.badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--danger);
    color: white;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

/* Settings Section */
.settings-section {
    margin-bottom: 24px;
}

.settings-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.settings-item {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-item-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.settings-item-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--border);
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-switch.active {
    background: var(--success);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.toggle-switch.active::after {
    transform: translateX(22px);
}

/* Service Report */
.service-report {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.service-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.service-report-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.service-report-tech {
    font-size: 12px;
    color: var(--text-secondary);
}

.service-report-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-report-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
}

.service-report-item .icon {
    color: var(--success);
    font-size: 16px;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid white;
}

.timeline-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.timeline-content {
    font-size: 14px;
    color: var(--text-primary);
}

/* Console Viewer Button */
.console-viewer-btn {
    position: fixed;
    bottom: 150px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.3s;
}

.console-viewer-btn:active {
    transform: scale(0.9);
}

/* Console Modal */
.console-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.console-modal.active {
    display: flex;
}

.console-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.console-header {
    padding: 16px 20px;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.console-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.console-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #1e293b;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #e2e8f0;
}

.console-log {
    padding: 8px;
    margin-bottom: 4px;
    border-radius: 4px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.console-log.log {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.console-log.error {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border-left: 3px solid #ef4444;
}

.console-log.warn {
    background: rgba(245, 158, 11, 0.1);
    color: #fcd34d;
    border-left: 3px solid #f59e0b;
}

.console-log.info {
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    border-left: 3px solid #3b82f6;
}

.console-footer {
    padding: 12px 20px;
    border-top: 2px solid var(--border);
    display: flex;
    gap: 8px;
}

.console-timestamp {
    color: #94a3b8;
    font-size: 11px;
    margin-right: 8px;
}

/* Company Configuration */
.config-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.config-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.config-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 16px;
}

.config-preview img {
    max-width: 80px;
    max-height: 60px;
    object-fit: contain;
    border-radius: 4px;
}

.config-preview-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.config-preview-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Logo Preview */
.logo-preview-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.logo-preview-container img {
    max-width: 100px;
    max-height: 60px;
    object-fit: contain;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    background: white;
}

.logo-preview-container .no-logo {
    padding: 20px;
    background: var(--bg-light);
    border: 2px dashed var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

/* ============================================ */
/* Monthly Services Styles */
/* ============================================ */

/* Expandable AMC Card */
.expandable-amc {
    cursor: pointer;
    transition: all 0.3s ease;
}

.expandable-amc .amc-header {
    cursor: pointer;
}

.expand-icon {
    font-size: 12px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

/* Monthly Services Dropdown */
.monthly-services-dropdown {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px dashed var(--border);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.monthly-services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.monthly-services-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.monthly-stats {
    display: flex;
    gap: 8px;
}

.stat-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.stat-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.stat-badge.completed {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
}

/* Monthly Services Grid */
.monthly-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

/* Monthly Service Card */
.monthly-service-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.monthly-service-card.pending {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.05);
}

.monthly-service-card.completed {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.monthly-service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.month-number {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.month-status {
    font-size: 14px;
}

.month-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.month-date {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.month-completed-info {
    margin-bottom: 8px;
}

.month-completed-info small {
    display: block;
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

/* Rating Display */
.rating-display {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 2px;
}

/* Button Extra Small */
.btn-xs {
    padding: 4px 8px;
    font-size: 11px;
}

/* Signature Canvas */
.signature-container {
    width: 100%;
}

.signature-canvas {
    width: 100%;
    height: 150px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: white;
    cursor: crosshair;
    touch-action: none;
}

.signature-display img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* Rating Stars */
.rating-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 8px 0;
}

.rating-star {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-star:hover,
.rating-star.active {
    color: #f59e0b;
    transform: scale(1.1);
}

/* Service Info Header */
.service-info-header {
    margin-bottom: 20px;
}

.service-month-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.service-month-header h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.service-month-header p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.service-month-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Form Divider */
.form-divider {
    height: 2px;
    background: var(--border);
    margin: 20px 0;
}

/* Service Report View */
.service-report-view {
    padding: 0;
}

.service-report-view .report-header {
    background: var(--bg-light);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
}

.service-report-view .report-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.service-report-view .report-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.service-report-view .report-month {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.service-report-view .report-section {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.service-report-view .report-section:last-child {
    border-bottom: none;
}

.service-report-view .report-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.service-report-view .report-value {
    font-size: 14px;
    color: var(--text-primary);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .amc-details {
        grid-template-columns: 1fr 1fr;
    }

    .modal-content {
        max-height: 95vh;
        border-radius: 12px 12px 0 0;
    }

    .config-preview {
        flex-direction: column;
        text-align: center;
    }

    .monthly-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .monthly-services-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rating-star {
        font-size: 28px;
    }
}
}

/* ============================================
   PRICING PAGE STYLES
   ============================================ */

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.pricing-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.toggle-btn {
    padding: 12px 24px;
    border: 2px solid var(--border);
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.toggle-btn:hover {
    border-color: var(--primary);
}

.toggle-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.save-badge {
    display: inline-block;
    background: var(--success);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 6px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.pricing-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.pricing-card.popular {
    border-color: var(--primary);
    border-width: 3px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.plan-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.plan-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 8px;
}

.plan-price .currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.plan-price .amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.plan-price .period {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 4px;
}

.yearly-total {
    margin-bottom: 24px;
    min-height: 20px;
}

.yearly-total small {
    color: var(--text-secondary);
    font-size: 13px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.plan-features li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

.plan-features li:last-child {
    border-bottom: none;
}

/* Dark Mode for Pricing */
body.dark-mode .pricing-card {
    background: #0a0a0a;
    border-color: var(--border);
}

body.dark-mode .toggle-btn {
    background: #0a0a0a;
    border-color: var(--border);
    color: var(--text-primary);
}

body.dark-mode .toggle-btn.active {
    background: var(--primary);
    color: #000000;
}

/* Responsive Pricing */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-toggle {
        flex-direction: column;
    }

    .toggle-btn {
        width: 100%;
    }

    .plan-price .amount {
        font-size: 36px;
    }
}
