/* ============================================
   MOVIXIT DIGITAL OFFICE V2 - FRONTEND STYLES
   Enhanced Modern Edition v3.0
   ============================================ */

:root {
    --blue: #0B5CFF;
    --blue-dark: #0645d9;
    --blue-light: #2EA0FF;
    --dark: #061A40;
    --dark-light: #1e293b;
    --border: #DFE5EF;
    --muted: #64748b;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #8B5CF6;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mox-front {
    --blue: #0B5CFF;
    --dark: #061A40;
    --border: rgba(15, 23, 42, 0.1);
    --muted: #64748b;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
    color: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Hero Section - Enhanced */
.mox-hero {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 24px;
    align-items: center;
    padding: 36px 40px;
    border-radius: var(--radius-2xl);
    color: #fff;
    background: linear-gradient(135deg, #020817, var(--dark), var(--blue));
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.mox-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.mox-hero h1 {
    color: #fff;
    margin: 12px 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.mox-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.6;
}

.mox-kicker {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    backdrop-filter: blur(10px);
}

.mox-hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Grid Layouts */
.mox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mox-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.mox-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Stats Cards */
.mox-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.mox-card,
.mox-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.mox-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.mox-card span {
    display: block;
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mox-card strong {
    display: block;
    color: var(--dark);
    font-size: 32px;
    margin-top: 8px;
    font-weight: 800;
}

/* Buttons */
.mox-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    border: none;
    border-radius: var(--radius-full);
    padding: 0 24px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 14px;
}

.mox-btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.mox-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mox-btn-light {
    background: #fff;
    color: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mox-btn-light:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.mox-btn-outline {
    background: transparent;
    border: 2px solid var(--blue);
    color: var(--blue);
}

.mox-btn-outline:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-2px);
}

/* Lists */
.mox-list {
    display: grid;
    gap: 12px;
}

.mox-list-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-fast);
}

.mox-list-item:hover {
    background: #fff;
    border-color: var(--blue-light);
    box-shadow: var(--shadow-sm);
}

/* Progress Bar */
.mox-progress {
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    overflow: hidden;
}

.mox-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--info));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* Forms */
.mox-form {
    display: grid;
    gap: 16px;
}

.mox-form input,
.mox-form select,
.mox-form textarea {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.mox-form input:focus,
.mox-form select:focus,
.mox-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(11, 92, 255, 0.1);
}

.mox-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-700);
}

/* Tables */
.mox-table {
    width: 100%;
    border-collapse: collapse;
}

.mox-table th,
.mox-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
}

.mox-table th {
    background: var(--gray-50);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mox-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

/* Chat Box */
.mox-chat-box {
    height: 350px;
    overflow-y: auto;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mox-message {
    padding: 12px 18px;
    border-radius: 20px;
    background: #fff;
    margin: 4px 0;
    max-width: 80%;
    width: fit-content;
    box-shadow: var(--shadow-xs);
    animation: fadeInUp 0.3s ease;
}

.mox-message strong {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--blue);
}

.mox-message p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.mox-message small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 6px;
}

.mox-message.me {
    margin-left: auto;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
}

.mox-message.me strong {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status Badges */
.mox-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.mox-status-active {
    background: #dcfce7;
    color: #166534;
}

.mox-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.mox-status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.mox-status-inactive {
    background: #fee2e2;
    color: #dc2626;
}

/* Alerts */
.mox-alert {
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mox-alert-success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid var(--success);
}

.mox-alert-error {
    background: #fee2e2;
    color: #dc2626;
    border-left: 4px solid var(--danger);
}

.mox-alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning);
}

.mox-alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--blue);
}

/* Auth Pages */
.mox-auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.mox-auth-card {
    background: #fff;
    border-radius: var(--radius-2xl);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.4s ease;
}

.mox-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.mox-auth-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.mox-auth-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--dark);
}

.mox-auth-header p {
    color: var(--muted);
    font-size: 14px;
}

.mox-auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.mox-auth-footer a {
    color: var(--blue);
    text-decoration: none;
}

.mox-auth-footer a:hover {
    text-decoration: underline;
}

/* Registration Options */
.mox-reg-option,
.mox-login-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.mox-reg-option:hover,
.mox-login-option:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue);
    background: #fff;
}

/* Dashboard Specific */
.mox-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mox-stat-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
}

.mox-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.mox-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--blue);
}

.mox-stat-label {
    font-size: 13px;
    color: var(--muted);
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .mox-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .mox-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px;
    }

    .mox-grid,
    .mox-grid-2 {
        grid-template-columns: 1fr;
    }

    .mox-front {
        padding: 16px;
    }

    .mox-auth-card {
        padding: 24px;
    }

    .mox-message {
        max-width: 90%;
    }
}

@media (max-width: 640px) {
    .mox-grid-3 {
        grid-template-columns: 1fr;
    }

    .mox-cards {
        grid-template-columns: 1fr;
    }

    .mox-hero h1 {
        font-size: 28px;
    }

    .mox-dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .mox-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .mox-hero {
        padding: 20px;
    }
}

/* Animations */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.mox-skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Print Styles */
@media print {

    .mox-hero,
    .mox-btn,
    .mox-head-actions {
        display: none !important;
    }

    .mox-card,
    .mox-panel {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}