/*
Theme Name:   Neve Babel Portal Child
Theme URI:    https://babel-bridge.net
Description:  Child theme for Neve with integrated Babel Translation Portal. Combines Neve's modern design with custom translation management functionality including multilingual support (Albanian/German/English), order management, translator dashboard, and payment integration.
Author:       Babel-Bridge Team
Author URI:   https://babel-bridge.net
Template:     neve
Version:      2.0.0
License:      GNU General Public License v3 or later
License URI:  https://www.gnu.org/licenses/gpl-3.0.html
Text Domain:  neve-babel-child
Tags:         translation, multilingual, portal, business
*/

/* ============================================
   NEVE CHILD THEME - BABEL PORTAL INTEGRATION
   Version: 2.0.0
   Last Updated: 12.03.2026
   ============================================ */

/* ---------------------------------------------
   1. GLOBAL VARIABLES & RESETS
   --------------------------------------------- */

:root {
    /* Babel Brand Colors */
    --babel-primary: #0066cc;
    --babel-primary-dark: #004d99;
    --babel-secondary: #00a8e8;
    --babel-accent: #ff6b35;
    --babel-success: #28a745;
    --babel-warning: #ffc107;
    --babel-error: #dc3545;
    --babel-info: #17a2b8;
    
    /* Neutral Colors */
    --babel-dark: #212529;
    --babel-gray-dark: #343a40;
    --babel-gray: #6c757d;
    --babel-gray-light: #adb5bd;
    --babel-light: #f8f9fa;
    --babel-white: #ffffff;
    
    /* Typography */
    --babel-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --babel-font-size-base: 16px;
    --babel-line-height-base: 1.6;
    
    /* Spacing */
    --babel-spacing-xs: 0.5rem;
    --babel-spacing-sm: 1rem;
    --babel-spacing-md: 1.5rem;
    --babel-spacing-lg: 2rem;
    --babel-spacing-xl: 3rem;
    
    /* Border Radius */
    --babel-radius-sm: 4px;
    --babel-radius-md: 8px;
    --babel-radius-lg: 12px;
    
    /* Shadows */
    --babel-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --babel-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --babel-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --babel-transition: all 0.3s ease;
}

/* ---------------------------------------------
   2. NEVE INTEGRATION & OVERRIDES
   --------------------------------------------- */

/* Neve Content Wrapper - Babel Portal Pages */
.nv-content-wrap .babel-portal-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--babel-spacing-lg);
}

/* Neve Header Integration */
.header--row .neve-language-switcher {
    display: inline-flex;
    align-items: center;
    margin-left: 20px;
    padding: 0;
}

/* Position language switcher as last menu item (like babel-bridge.net) */
.hfg-slot.right {
    display: flex;
    align-items: center;
}

.header--row .neve-language-switcher {
    order: 999; /* Ensure it appears last */
}

/* Neve Primary Menu Adjustment */
.neve-primary-menu {
    display: flex;
    align-items: center;
}

/* Neve Footer Adjustments */
.site-footer .babel-portal-links {
    padding: var(--babel-spacing-lg) 0;
    border-top: 1px solid var(--babel-gray-light);
}

/* ---------------------------------------------
   3. LANGUAGE SWITCHER (Neve Header)
   --------------------------------------------- */

.neve-language-switcher {
    position: relative;
    z-index: 100;
}

/* Style similar to babel-bridge.net WPML switcher */
.neve-language-switcher select,
.neve-language-switcher .language-dropdown {
    min-width: 140px;
    padding: 8px 30px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.neve-language-switcher select:hover,
.neve-language-switcher .language-dropdown:hover {
    border-color: #999;
    background-color: #f9f9f9;
}

.neve-language-switcher select:focus,
.neve-language-switcher .language-dropdown:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

/* Language Flags */
.babel-language-flag {
    display: inline-block;
    width: 20px;
    height: 15px;
    margin-right: var(--babel-spacing-xs);
    vertical-align: middle;
    font-size: 16px;
    line-height: 1;
}

/* ---------------------------------------------
   4. BABEL ORDER FORM
   --------------------------------------------- */

.babel-order-form {
    background: var(--babel-white);
    border-radius: var(--babel-radius-lg);
    box-shadow: var(--babel-shadow-md);
    padding: var(--babel-spacing-xl);
    margin: var(--babel-spacing-lg) 0;
}

.babel-order-form h2,
.babel-order-form h3 {
    color: var(--babel-dark);
    margin-bottom: var(--babel-spacing-md);
}

.babel-order-form .form-section {
    margin-bottom: var(--babel-spacing-lg);
    padding-bottom: var(--babel-spacing-lg);
    border-bottom: 1px solid var(--babel-gray-light);
}

.babel-order-form .form-section:last-child {
    border-bottom: none;
}

/* Form Fields */
.babel-form-field {
    margin-bottom: var(--babel-spacing-md);
}

.babel-form-field label {
    display: block;
    font-weight: 600;
    color: var(--babel-dark);
    margin-bottom: var(--babel-spacing-xs);
}

.babel-form-field label.required::after {
    content: " *";
    color: var(--babel-error);
}

.babel-form-field input[type="text"],
.babel-form-field input[type="email"],
.babel-form-field input[type="tel"],
.babel-form-field input[type="number"],
.babel-form-field select,
.babel-form-field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--babel-gray-light);
    border-radius: var(--babel-radius-sm);
    font-size: var(--babel-font-size-base);
    transition: var(--babel-transition);
}

.babel-form-field input:focus,
.babel-form-field select:focus,
.babel-form-field textarea:focus {
    outline: none;
    border-color: var(--babel-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.babel-form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.babel-form-field .field-description {
    font-size: 0.875rem;
    color: var(--babel-gray);
    margin-top: var(--babel-spacing-xs);
}

.babel-form-field.error input,
.babel-form-field.error select,
.babel-form-field.error textarea {
    border-color: var(--babel-error);
}

.babel-form-field .error-message {
    display: block;
    color: var(--babel-error);
    font-size: 0.875rem;
    margin-top: var(--babel-spacing-xs);
}

/* File Upload Field */
.babel-file-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--babel-spacing-sm);
}

.babel-file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.babel-file-upload-label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--babel-light);
    border: 2px dashed var(--babel-gray-light);
    border-radius: var(--babel-radius-sm);
    cursor: pointer;
    transition: var(--babel-transition);
    text-align: center;
    flex: 1;
}

.babel-file-upload-label:hover {
    background: var(--babel-primary);
    color: var(--babel-white);
    border-color: var(--babel-primary);
}

.babel-file-upload-label.has-file {
    background: var(--babel-success);
    color: var(--babel-white);
    border-color: var(--babel-success);
    border-style: solid;
}

/* Checkbox & Radio */
.babel-form-field input[type="checkbox"],
.babel-form-field input[type="radio"] {
    margin-right: var(--babel-spacing-xs);
}

.babel-form-field .checkbox-group,
.babel-form-field .radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--babel-spacing-xs);
}

/* Form Buttons */
.babel-form-actions {
    display: flex;
    gap: var(--babel-spacing-md);
    margin-top: var(--babel-spacing-lg);
}

.babel-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--babel-radius-sm);
    font-size: var(--babel-font-size-base);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--babel-transition);
}

.babel-btn-primary {
    background: var(--babel-primary);
    color: var(--babel-white);
}

.babel-btn-primary:hover {
    background: var(--babel-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--babel-shadow-md);
}

.babel-btn-secondary {
    background: var(--babel-gray-light);
    color: var(--babel-dark);
}

.babel-btn-secondary:hover {
    background: var(--babel-gray);
    color: var(--babel-white);
}

.babel-btn-success {
    background: var(--babel-success);
    color: var(--babel-white);
}

.babel-btn-danger {
    background: var(--babel-error);
    color: var(--babel-white);
}

.babel-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ---------------------------------------------
   5. PRICING CALCULATOR
   --------------------------------------------- */

.babel-pricing-calculator {
    background: var(--babel-light);
    border-radius: var(--babel-radius-md);
    padding: var(--babel-spacing-lg);
    margin: var(--babel-spacing-lg) 0;
    border-left: 4px solid var(--babel-primary);
}

.babel-pricing-calculator h3 {
    margin-top: 0;
    color: var(--babel-primary);
}

.babel-price-display {
    font-size: 2rem;
    font-weight: bold;
    color: var(--babel-primary);
    margin: var(--babel-spacing-md) 0;
}

.babel-price-breakdown {
    font-size: 0.875rem;
    color: var(--babel-gray);
    margin-top: var(--babel-spacing-sm);
}

/* ---------------------------------------------
   6. TRANSLATOR DASHBOARD
   --------------------------------------------- */

.babel-dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--babel-spacing-lg);
    margin: var(--babel-spacing-lg) 0;
}

.babel-dashboard-sidebar {
    background: var(--babel-white);
    border-radius: var(--babel-radius-md);
    padding: var(--babel-spacing-lg);
    box-shadow: var(--babel-shadow-sm);
}

.babel-dashboard-main {
    background: var(--babel-white);
    border-radius: var(--babel-radius-md);
    padding: var(--babel-spacing-lg);
    box-shadow: var(--babel-shadow-sm);
}

/* Dashboard Stats */
.babel-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--babel-spacing-md);
    margin-bottom: var(--babel-spacing-lg);
}

.babel-stat-card {
    background: linear-gradient(135deg, var(--babel-primary), var(--babel-secondary));
    color: var(--babel-white);
    padding: var(--babel-spacing-lg);
    border-radius: var(--babel-radius-md);
    box-shadow: var(--babel-shadow-md);
}

.babel-stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.babel-stat-card .stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: var(--babel-spacing-xs);
}

/* Order Table */
.babel-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--babel-spacing-md);
}

.babel-orders-table th,
.babel-orders-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--babel-gray-light);
}

.babel-orders-table th {
    background: var(--babel-light);
    font-weight: 600;
    color: var(--babel-dark);
}

.babel-orders-table tr:hover {
    background: var(--babel-light);
}

/* Status Badges */
.babel-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--babel-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.babel-status-badge.status-pending {
    background: var(--babel-warning);
    color: var(--babel-dark);
}

.babel-status-badge.status-accepted {
    background: var(--babel-info);
    color: var(--babel-white);
}

.babel-status-badge.status-in-progress {
    background: var(--babel-secondary);
    color: var(--babel-white);
}

.babel-status-badge.status-completed {
    background: var(--babel-success);
    color: var(--babel-white);
}

.babel-status-badge.status-rejected {
    background: var(--babel-error);
    color: var(--babel-white);
}

/* ---------------------------------------------
   7. ALERTS & NOTIFICATIONS
   --------------------------------------------- */

.babel-alert {
    padding: var(--babel-spacing-md);
    border-radius: var(--babel-radius-sm);
    margin: var(--babel-spacing-md) 0;
    border-left: 4px solid;
}

.babel-alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: var(--babel-success);
    color: var(--babel-success);
}

.babel-alert-error {
    background: rgba(220, 53, 69, 0.1);
    border-color: var(--babel-error);
    color: var(--babel-error);
}

.babel-alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: var(--babel-warning);
    color: #856404;
}

.babel-alert-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: var(--babel-info);
    color: var(--babel-info);
}

/* ---------------------------------------------
   8. RESPONSIVE DESIGN
   --------------------------------------------- */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .babel-dashboard {
        grid-template-columns: 1fr;
    }
    
    .babel-dashboard-sidebar {
        order: 2;
    }
    
    .babel-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .babel-form-actions {
        flex-direction: column;
    }
    
    .babel-btn {
        width: 100%;
    }
    
    .babel-orders-table {
        font-size: 0.875rem;
    }
    
    .babel-orders-table th,
    .babel-orders-table td {
        padding: 0.5rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        --babel-spacing-lg: 1.5rem;
        --babel-spacing-xl: 2rem;
    }
    
    .babel-order-form {
        padding: var(--babel-spacing-md);
    }
    
    .babel-price-display {
        font-size: 1.5rem;
    }
    
    .babel-stat-card .stat-value {
        font-size: 2rem;
    }
    
    /* Stack table on mobile */
    .babel-orders-table thead {
        display: none;
    }
    
    .babel-orders-table tr {
        display: block;
        margin-bottom: var(--babel-spacing-md);
        border: 1px solid var(--babel-gray-light);
        border-radius: var(--babel-radius-sm);
    }
    
    .babel-orders-table td {
        display: block;
        text-align: right;
        padding: 0.5rem;
        border-bottom: 1px solid var(--babel-gray-light);
    }
    
    .babel-orders-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
    }
    
    .babel-orders-table td:last-child {
        border-bottom: none;
    }
}

/* ---------------------------------------------
   9. UTILITY CLASSES
   --------------------------------------------- */

.babel-text-center { text-align: center; }
.babel-text-right { text-align: right; }
.babel-text-left { text-align: left; }

.babel-mt-0 { margin-top: 0; }
.babel-mt-1 { margin-top: var(--babel-spacing-xs); }
.babel-mt-2 { margin-top: var(--babel-spacing-sm); }
.babel-mt-3 { margin-top: var(--babel-spacing-md); }
.babel-mt-4 { margin-top: var(--babel-spacing-lg); }

.babel-mb-0 { margin-bottom: 0; }
.babel-mb-1 { margin-bottom: var(--babel-spacing-xs); }
.babel-mb-2 { margin-bottom: var(--babel-spacing-sm); }
.babel-mb-3 { margin-bottom: var(--babel-spacing-md); }
.babel-mb-4 { margin-bottom: var(--babel-spacing-lg); }

.babel-hidden { display: none !important; }
.babel-visible { display: block !important; }

/* ---------------------------------------------
   10. LOADING SPINNER & GLASSMORPHISM OVERLAY
   --------------------------------------------- */

.babel-loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--babel-gray-light);
    border-top-color: var(--babel-primary);
    border-radius: 50%;
    animation: babel-spin 0.8s linear infinite;
}

@keyframes babel-spin {
    to { transform: rotate(360deg); }
}

/* Glassmorphism Loading Overlay - Premium Design */
.babel-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Blurred background - Glassmorphism effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

 background: linear-gradient(
        135deg,
        rgba(0, 102, 204, 0.15) 0%,      /* Primary 60% - Soft blue */
        rgba(0, 168, 232, 0.12) 50%,     /* Secondary 30% - Cyan accent */
        rgba(255, 107, 53, 0.08) 100%    /* Accent 10% - Coral highlight */
    );
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in;
}

.babel-loading-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Modern Spinner Design */
.babel-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
    z-index: 1;
}

.babel-spinner::before,
.babel-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

/* Outer ring - Primary color (60%) */
.babel-spinner::before {
    width: 80px;
    height: 80px;
    border: 4px solid transparent;
    border-top-color: var(--babel-primary);
    border-right-color: var(--babel-primary);
    animation: spinOuter 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

/* Inner ring - Secondary color (30%) */
.babel-spinner::after {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border: 4px solid transparent;
    border-top-color: var(--babel-secondary);
    border-left-color: var(--babel-secondary);
    animation: spinInner 1s cubic-bezier(0.5, 0, 0.5, 1) infinite reverse;
}

/* Pulsing center dot - Accent color (10%) */
.babel-spinner::after::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--babel-accent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
}

@keyframes spinOuter {
    to { transform: rotate(360deg); }
}

@keyframes spinInner {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Loading text with glassmorphism card */
.babel-loading-overlay p {
    position: relative;
    z-index: 1;
    color: var(--babel-dark);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    padding: 20px 40px;
    margin: 0;

    /* Glassmorphism card effect */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 102, 204, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);

    /* Subtle animation */
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

/* Loading progress indicator (optional enhancement) */
.babel-loading-overlay .progress-dots {
    position: absolute;
    bottom: 80px;
    display: flex;
    gap: 12px;
}

.babel-loading-overlay .progress-dots span {
    width: 8px;
    height: 8px;
    background: var(--babel-primary);
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.5);
}

.babel-loading-overlay .progress-dots span:nth-child(2) {
    animation-delay: 0.2s;
    background: var(--babel-secondary);
    box-shadow: 0 0 10px rgba(0, 168, 232, 0.5);
}

.babel-loading-overlay .progress-dots span:nth-child(3) {
    animation-delay: 0.4s;
    background: var(--babel-accent);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}


/* ---------------------------------------------
   11. PREMIUM UI - BUTTON SYSTEM (60-30-10 RULE)
   --------------------------------------------- */

/* Universal Button Selector - Matches all babel-btn-* variants */
[class*="babel-btn"],
.babel-button,
button[class*="babel-btn"],
.button[class*="babel-btn"],
a[class*="babel-btn"] {
    /* Alle babel-btn-download, babel-btn-start, etc. erben diese Styles */
}

/* Primary Buttons - 60% Usage (Main Actions) */
/* Match all elements with class containing "babel-btn" */
.babel-btn,
[class*="babel-btn"],
.babel-button,
.button[class*="babel-btn"] {
    position: relative;
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    color: var(--babel-white);
    background: linear-gradient(135deg, var(--babel-primary) 0%, var(--babel-primary-dark) 100%);
    border: none;
    border-radius: var(--babel-radius-md);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 4px 15px rgba(0, 102, 204, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

[class*="babel-btn"]::before, .babel-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

/* Hover State - Glow Effect */
[class*="babel-btn"]:hover,
.babel-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(0, 102, 204, 0.4),
        0 0 30px rgba(0, 102, 204, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--babel-primary-dark) 0%, var(--babel-primary) 100%);
}

/* Active State - Click Glow */
[class*="babel-btn"]:active,
.babel-btn:active {
    transform: translateY(0);
    box-shadow:
        0 2px 10px rgba(0, 102, 204, 0.3),
        0 0 40px rgba(0, 102, 204, 0.5),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

[class*="babel-btn"]:active::before,
.babel-btn:active::before {
    width: 300px;
    height: 300px;
}

/* Focus State - Accessibility */
[class*="babel-btn"]:focus,
.babel-btn:focus {
    outline: none;
    box-shadow:
        0 4px 15px rgba(0, 102, 204, 0.2),
        0 0 0 4px rgba(0, 102, 204, 0.15);
}

/* Back Bounce Effect on Mouse Leave */
@keyframes backBounce {
    0% { transform: translateY(-2px); }
    50% { transform: translateY(2px); }
    100% { transform: translateY(0); }
}

[class*="babel-btn"]:not(:hover):not(:active),
.babel-btn:not(:hover):not(:active) {
    animation: backBounce 0.5s ease-out;
}

/* Secondary Buttons - 30% Usage (Supporting Actions) */
.babel-btn-secondary {
    background: linear-gradient(135deg, var(--babel-secondary) 0%, rgba(0, 168, 232, 0.85) 100%);
    box-shadow:
        0 4px 15px rgba(0, 168, 232, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.babel-btn-secondary:hover {
    box-shadow:
        0 8px 25px rgba(0, 168, 232, 0.4),
        0 0 30px rgba(0, 168, 232, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.85) 0%, var(--babel-secondary) 100%);
}

/* Accent Buttons - 10% Usage (Call-to-Action, Important) */
.babel-btn-accent, .babel-btn-cta {
    background: linear-gradient(135deg, var(--babel-accent) 0%, rgba(255, 107, 53, 0.9) 100%);
    box-shadow:
        0 4px 15px rgba(255, 107, 53, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.babel-btn-accent:hover {
    box-shadow:
        0 8px 25px rgba(255, 107, 53, 0.45),
        0 0 35px rgba(255, 107, 53, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9) 0%, var(--babel-accent) 100%);
}

/* Success Button - Confirmation Actions */
.babel-btn-success {
    background: linear-gradient(135deg, var(--babel-success) 0%, rgba(40, 167, 69, 0.9) 100%);
    box-shadow:
        0 4px 15px rgba(40, 167, 69, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.babel-btn-success:hover {
    box-shadow:
        0 8px 25px rgba(40, 167, 69, 0.4),
        0 0 30px rgba(40, 167, 69, 0.3);
}

/* Danger/Error Button - Destructive Actions */
.babel-btn-danger {
    background: linear-gradient(135deg, var(--babel-error) 0%, rgba(220, 53, 69, 0.9) 100%);
    box-shadow:
        0 4px 15px rgba(220, 53, 69, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.babel-btn-danger:hover {
    box-shadow:
        0 8px 25px rgba(220, 53, 69, 0.4),
        0 0 30px rgba(220, 53, 69, 0.3);
}

/* Outline Buttons - Ghost Style */
.babel-btn-outline {
    background: transparent;
    color: var(--babel-primary);
    border: 2px solid var(--babel-primary);
    box-shadow: none;
}

.babel-btn-outline:hover {
    background: var(--babel-primary);
    color: var(--babel-white);
    box-shadow:
        0 8px 25px rgba(0, 102, 204, 0.3),
        0 0 30px rgba(0, 102, 204, 0.2);
}

/* Button Sizes */
.babel-btn-sm {
    padding: 10px 24px;
    font-size: 14px;
}

.babel-btn-lg {
    padding: 18px 40px;
    font-size: 18px;
}

.babel-btn-xl {
    padding: 22px 48px;
    font-size: 20px;
    font-weight: 700;
}

/* Button States */
.babel-btn:disabled, .babel-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.babel-btn:disabled:hover, .babel-btn.disabled:hover {
    transform: none;
}

/* Button with Icon */
.babel-btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.babel-btn-icon  svg, .babel-btn-icon i {
    transition: transform 0.3s ease;
}

.babel-btn-icon:hover svg, .babel-btn-icon:hover i {
    transform: translateX(4px);
}

/* Loading State */
.babel-btn.loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.babel-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--babel-white);
    border-radius: 50%;
    animation: buttonSpin 0.8s linear infinite;
}

@keyframes buttonSpin {
    to { transform: rotate(360deg); }
}

/* Button Group */
.babel-btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.babel-btn-group .babel-btn {
    margin: 0;
}


/* ---------------------------------------------
   12. PREMIUM UI - CARD & DATA TABLES
   --------------------------------------------- */

/* Premium Card Design */
.babel-card {
    background: var(--babel-white);
    border-radius: var(--babel-radius-lg);
    box-shadow:
        0 4px 20px rgba(0, 102, 204, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    padding: var(--babel-spacing-lg);
    margin-bottom: var(--babel-spacing-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 102, 204, 0.06);
    overflow: hidden;
    position: relative;
}

/* Accent Bar - 60-30-10 Rule */
.babel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--babel-primary) 0% 60%,          /* 60% Primary */
        var(--babel-secondary) 60% 90%,       /* 30% Secondary */
        var(--babel-accent) 90% 100%          /* 10% Accent */
    );
}

.babel-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(0, 102, 204, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.08);
}

.babel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--babel-spacing-md);
    padding-bottom: var(--babel-spacing-sm);
    border-bottom: 2px solid var(--babel-light);
}

.babel-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--babel-dark);
    margin: 0;
}

.babel-card-body {
    color: var(--babel-gray-dark);
    line-height: 1.7;
}

/* Status Badges with 60-30-10 Colors */
.babel-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.babel-badge-primary {
    background: rgba(0, 102, 204, 0.12);
    color: var(--babel-primary-dark);
}

.babel-badge-secondary {
    background: rgba(0, 168, 232, 0.12);
    color: var(--babel-secondary);
}

.babel-badge-accent {
    background: rgba(255, 107, 53, 0.12);
    color: var(--babel-accent);
}

.babel-badge-success {
    background: rgba(40, 167, 69, 0.12);
    color: var(--babel-success);
}

.babel-badge-warning {
    background: rgba(255, 193, 7, 0.12);
    color: #d39e00;
}

.babel-badge-danger {
    background: rgba(220, 53, 69, 0.12);
    color: var(--babel-error);
}


/* ---------------------------------------------
   13. PREMIUM UI - DATA TABLES
   --------------------------------------------- */

.babel-table-container {
    background: var(--babel-white);
    border-radius: var(--babel-radius-lg);
    box-shadow:
        0 4px 20px rgba(0, 102, 204, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin: var(--babel-spacing-lg) 0;
}

.babel-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.babel-table thead {
    background: linear-gradient(
        90deg,
        rgba(0, 102, 204, 0.08) 0%,
        rgba(0, 168, 232, 0.06) 60%,
        rgba(255, 107, 53, 0.05) 100%
    );
}

.babel-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    color: var(--babel-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--babel-primary);
}

.babel-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 102, 204, 0.06);
}

.babel-table tbody tr:hover {
    background: rgba(0, 102, 204, 0.03);
    transform: scale(1.002);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.08);
}

.babel-table td {
    padding: 16px 20px;
    color: var(--babel-gray-dark);
    font-size: 15px;
}

/* Striped Table Style */
.babel-table tbody tr:nth-child(even) {
    background: rgba(0, 102, 204, 0.02);
}




/* =========================================================================
   PREMIUM UI - GLOBAL BUTTON SYSTEM (ALL PAGES)
   Applies to: Frontend order pages + Admin dashboards + All babel-btn-* classes
   ========================================================================= */

/* Apply Premium UI to ID-based Frontend Buttons */
#addDocBtn,
#removeDocBtn,
#startJob,
#check-customer-btn,
#submitCustomerData,
#cancelOrderBtn,
.btn-primary,
.btn-cancel,
.btn-home,
.babel-success .btn-home,
.babel-cancel .btn-home {
    position: relative !important;
    display: inline-block !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    text-decoration: none !important;
    color: #fff !important;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow:
        0 4px 15px rgba(0, 102, 204, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    overflow: hidden !important;
}

/* Ripple effect for Frontend buttons */
#addDocBtn::before,
#removeDocBtn::before,
#startJob::before,
#check-customer-btn::before,
#submitCustomerData::before,
#cancelOrderBtn::before,
.btn-primary::before,
.btn-home::before,
.btn-cancel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

/* Hover State - Blue Glow Effect (ALL Buttons) */
#addDocBtn:hover,
#removeDocBtn:hover,
#startJob:hover,
#check-customer-btn:hover,
#submitCustomerData:hover,
#cancelOrderBtn:hover,
.btn-primary:hover,
.btn-cancel:hover,
.btn-home:hover {
    transform: translateY(-2px) !important;
    box-shadow:
        0 8px 25px rgba(0, 102, 204, 0.4),
        0 0 30px rgba(0, 102, 204, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    background: linear-gradient(135deg, #0052a3 0%, #0066cc 100%) !important;
}

/* Active State - Click Glow Animation (ALL Buttons) */
#addDocBtn:active,
#removeDocBtn:active,
#startJob:active,
#check-customer-btn:active,
#submitCustomerData:active,
#cancelOrderBtn:active,
.btn-primary:active,
.btn-cancel:active,
.btn-home:active {
    transform: translateY(0) !important;
    box-shadow:
        0 2px 10px rgba(0, 102, 204, 0.3),
        0 0 40px rgba(0, 102, 204, 0.5),
        inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

#addDocBtn:active::before,
#removeDocBtn:active::before,
#startJob:active::before,
#check-customer-btn:active::before,
#submitCustomerData:active::before,
#cancelOrderBtn:active::before,
.btn-primary:active::before,
.btn-cancel:active::before,
.btn-home:active::before {
    width: 300px;
    height: 300px;
}

/* Focus State (ALL Buttons) */
#addDocBtn:focus,
#removeDocBtn:focus,
#startJob:focus,
#check-customer-btn:focus,
#submitCustomerData:focus,
#cancelOrderBtn:focus,
.btn-primary:focus,
.btn-cancel:focus,
.btn-home:focus {
    outline: none !important;
    box-shadow:
        0 4px 15px rgba(0, 102, 204, 0.2),
        0 0 0 4px rgba(0, 102, 204, 0.15) !important;
}

/* END GLOBAL PREMIUM UI */
