/* ==========================================================================
   CYBERPUNK UNIVERSAL STYLING - APPLIES TO ALL PAGES
   Consistent teal/green aesthetic across entire application
   ========================================================================== */

/* ========================================
   1. UNIVERSAL BACKGROUND & BASE STYLING
   ======================================== */

/* Apply cyberpunk background to ALL pages */
body, 
.page-container, 
.main-content,
.content-wrapper {
    background: linear-gradient(135deg, #0a0f0a 0%, #0f1b14 50%, #0a1a0f 100%) !important;
    background-attachment: fixed !important;
    color: #e0f2e7 !important;
    min-height: 100vh;
}

/* Add animated grid overlay to ALL pages */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(20, 184, 166, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 184, 166, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* ========================================
   2. TYPOGRAPHY & TEXT COLORS
   ======================================== */

/* Headings */
h1, h2, h3, h4, h5, h6,
.heading, .title, .header-text {
    color: #14b8a6 !important;
    text-shadow: 0 0 20px rgba(20, 184, 166, 0.5) !important;
}

/* Paragraphs and body text */
p, span, div, li, td, 
.text, .description, .content {
    color: #e0f2e7 !important;
}

/* Links */
a {
    color: #10b981 !important;
    transition: all 0.3s ease;
}

a:hover {
    color: #14b8a6 !important;
    text-shadow: 0 0 10px rgba(20, 184, 166, 0.5) !important;
}

/* Strong/bold text */
strong, b, .bold, .emphasis {
    color: #22c55e !important;
}

/* ========================================
   3. CARDS, PANELS & CONTAINERS
   ======================================== */

/* Universal glassmorphism for cards/panels */
.card, .panel, .widget, .container,
.box, .section, .module, .block,
.feature-card, .content-card, .info-card,
.metric-card, .stat-card, .data-card {
    background: rgba(13, 148, 136, 0.06) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(34, 197, 94, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 
        0 8px 32px rgba(13, 148, 136, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover effects for cards */
.card:hover, .panel:hover, .widget:hover,
.feature-card:hover, .content-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 
        0 12px 40px rgba(13, 148, 136, 0.2),
        0 0 30px rgba(20, 184, 166, 0.1) !important;
    border-color: rgba(20, 184, 166, 0.4) !important;
}

/* ========================================
   4. BUTTONS & INTERACTIVE ELEMENTS
   ======================================== */

/* All buttons */
.btn, button, .button,
input[type="submit"], input[type="button"],
.nav-button, .action-button, .cta-button {
    background: linear-gradient(135deg, #14b8a6, #10b981) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn:hover, button:hover, .button:hover,
input[type="submit"]:hover, input[type="button"]:hover {
    background: linear-gradient(135deg, #10b981, #14b8a6) !important;
    box-shadow: 
        0 0 25px rgba(20, 184, 166, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.2) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* Secondary/outline buttons */
.btn-secondary, .btn-outline, .button-outline {
    background: transparent !important;
    border: 2px solid #14b8a6 !important;
    color: #14b8a6 !important;
}

.btn-secondary:hover, .btn-outline:hover {
    background: rgba(20, 184, 166, 0.1) !important;
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.3) !important;
}

/* Danger/warning buttons */
.btn-danger, .btn-error, .button-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.btn-danger:hover {
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.4) !important;
}

/* ========================================
   5. FORM ELEMENTS
   ======================================== */

/* Input fields */
input, select, textarea,
.form-control, .input-field, .text-input {
    background: rgba(10, 15, 10, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(34, 197, 94, 0.2) !important;
    color: #e0f2e7 !important;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease !important;
}

input:focus, select:focus, textarea:focus,
.form-control:focus, .input-field:focus {
    border-color: #14b8a6 !important;
    box-shadow: 
        0 0 25px rgba(20, 184, 166, 0.4),
        inset 0 0 5px rgba(20, 184, 166, 0.1) !important;
    outline: none !important;
    background: rgba(10, 15, 10, 0.9) !important;
}

/* Placeholder text */
input::placeholder, textarea::placeholder {
    color: rgba(224, 242, 231, 0.4) !important;
}

/* Select dropdowns */
select option {
    background: #0a0f0a !important;
    color: #e0f2e7 !important;
}

/* Checkboxes and radios */
input[type="checkbox"], input[type="radio"] {
    accent-color: #14b8a6 !important;
}

/* ========================================
   6. NAVIGATION & HEADERS
   ======================================== */

/* Main navigation */
nav, .navigation, .navbar, .header,
.top-bar, .menu-bar {
    background: rgba(10, 15, 10, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(20, 184, 166, 0.2) !important;
}

/* Navigation links */
.nav-link, .menu-item, .nav-item a {
    color: #e0f2e7 !important;
    transition: all 0.3s ease !important;
}

.nav-link:hover, .menu-item:hover {
    color: #14b8a6 !important;
    text-shadow: 0 0 10px rgba(20, 184, 166, 0.5) !important;
}

/* Active navigation state */
.nav-link.active, .menu-item.active,
.nav-button.active {
    color: #14b8a6 !important;
    background: rgba(20, 184, 166, 0.1) !important;
    border-color: #14b8a6 !important;
}

/* ========================================
   7. TABLES
   ======================================== */

/* Table styling */
table, .table, .data-table {
    background: rgba(13, 148, 136, 0.04) !important;
    border: 1px solid rgba(34, 197, 94, 0.2) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

/* Table headers */
th, thead td, .table-header {
    background: rgba(20, 184, 166, 0.1) !important;
    color: #14b8a6 !important;
    border-bottom: 2px solid rgba(20, 184, 166, 0.3) !important;
    padding: 12px !important;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Table rows */
tr, .table-row {
    border-bottom: 1px solid rgba(34, 197, 94, 0.1) !important;
    transition: all 0.3s ease !important;
}

tr:hover, .table-row:hover {
    background: rgba(20, 184, 166, 0.05) !important;
}

/* Table cells */
td, .table-cell {
    padding: 10px !important;
    color: #e0f2e7 !important;
}

/* ========================================
   8. BADGES, TAGS & LABELS
   ======================================== */

.badge, .tag, .label, .chip,
.category-tag, .status-badge {
    background: rgba(20, 184, 166, 0.2) !important;
    border: 1px solid rgba(20, 184, 166, 0.4) !important;
    color: #14b8a6 !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    display: inline-block !important;
    margin: 2px !important;
    font-size: 0.85em;
    transition: all 0.3s ease !important;
}

.badge:hover, .tag:hover {
    background: rgba(20, 184, 166, 0.3) !important;
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.3) !important;
}

/* Status indicators */
.status-success, .badge-success {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
    color: #22c55e !important;
}

.status-warning, .badge-warning {
    background: rgba(251, 191, 36, 0.2) !important;
    border-color: rgba(251, 191, 36, 0.4) !important;
    color: #fbbf24 !important;
}

.status-danger, .badge-danger {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #ef4444 !important;
}

/* ========================================
   9. MODALS & OVERLAYS
   ======================================== */

.modal, .dialog, .popup, .overlay-content {
    background: rgba(10, 15, 10, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 2px solid rgba(20, 184, 166, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(20, 184, 166, 0.2) !important;
}

.modal-backdrop, .overlay-background {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(5px) !important;
}

/* ========================================
   10. SCROLLBARS
   ======================================== */

/* Webkit scrollbars */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 15, 10, 0.5);
    border: 1px solid rgba(20, 184, 166, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(20, 184, 166, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(20, 184, 166, 0.5);
}

/* ========================================
   11. ALERTS & NOTIFICATIONS
   ======================================== */

.alert, .notification, .message, .toast {
    background: rgba(13, 148, 136, 0.1) !important;
    border: 1px solid rgba(20, 184, 166, 0.3) !important;
    border-left: 4px solid #14b8a6 !important;
    color: #e0f2e7 !important;
    padding: 15px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.alert-success {
    border-left-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.1) !important;
}

.alert-warning {
    border-left-color: #fbbf24 !important;
    background: rgba(251, 191, 36, 0.1) !important;
}

.alert-danger, .alert-error {
    border-left-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

/* ========================================
   12. PROGRESS BARS & LOADERS
   ======================================== */

.progress, .progress-bar-container {
    background: rgba(10, 15, 10, 0.5) !important;
    border: 1px solid rgba(20, 184, 166, 0.2) !important;
    border-radius: 10px !important;
    overflow: hidden;
}

.progress-bar, .progress-fill {
    background: linear-gradient(90deg, #14b8a6, #10b981) !important;
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.5) !important;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Spinner/loader */
.spinner, .loader {
    border: 3px solid rgba(20, 184, 166, 0.2) !important;
    border-top-color: #14b8a6 !important;
}

/* ========================================
   13. BREADCRUMBS & PAGINATION
   ======================================== */

.breadcrumb, .breadcrumbs {
    background: rgba(13, 148, 136, 0.05) !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(20, 184, 166, 0.2) !important;
}

.breadcrumb-item, .breadcrumb a {
    color: #10b981 !important;
}

.breadcrumb-item.active {
    color: #14b8a6 !important;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 5px;
}

.page-link, .pagination a {
    background: rgba(13, 148, 136, 0.1) !important;
    border: 1px solid rgba(20, 184, 166, 0.3) !important;
    color: #14b8a6 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.page-link:hover, .pagination a:hover {
    background: rgba(20, 184, 166, 0.2) !important;
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.3) !important;
}

.page-link.active, .pagination .active {
    background: linear-gradient(135deg, #14b8a6, #10b981) !important;
    color: white !important;
}

/* ========================================
   14. CODE BLOCKS & SYNTAX
   ======================================== */

pre, code, .code-block, .syntax {
    background: rgba(10, 15, 10, 0.9) !important;
    border: 1px solid rgba(20, 184, 166, 0.3) !important;
    color: #14b8a6 !important;
    padding: 15px !important;
    border-radius: 8px !important;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

code {
    padding: 2px 6px !important;
    background: rgba(20, 184, 166, 0.1) !important;
}

/* ========================================
   15. TOOLTIPS
   ======================================== */

.tooltip, [data-tooltip] {
    position: relative;
}

.tooltip-content, [data-tooltip]::after {
    background: rgba(10, 15, 10, 0.95) !important;
    border: 1px solid rgba(20, 184, 166, 0.4) !important;
    color: #e0f2e7 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    font-size: 0.9em;
}

/* ========================================
   16. DIVIDERS & SEPARATORS
   ======================================== */

hr, .divider, .separator {
    border: none !important;
    height: 1px !important;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(20, 184, 166, 0.3),
        rgba(20, 184, 166, 0.5),
        rgba(20, 184, 166, 0.3),
        transparent
    ) !important;
    margin: 20px 0 !important;
}

/* ========================================
   17. ICONS & IMAGERY
   ======================================== */

/* Icon colors */
.icon, .fa, .fas, .far, .fab,
[class*="icon-"] {
    color: #14b8a6 !important;
    transition: all 0.3s ease !important;
}

.icon:hover, .fa:hover {
    color: #10b981 !important;
    text-shadow: 0 0 10px rgba(20, 184, 166, 0.5) !important;
}

/* Image overlays */
.image-overlay, .img-overlay {
    background: rgba(20, 184, 166, 0.1) !important;
}

/* ========================================
   18. CHARTS & GRAPHS
   ======================================== */

/* Apply teal color scheme to charts */
.chart-container, .graph-container {
    background: rgba(13, 148, 136, 0.05) !important;
    border: 1px solid rgba(20, 184, 166, 0.2) !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

/* Chart.js color overrides */
.chart-container canvas {
    filter: hue-rotate(150deg) saturate(1.2) !important;
}

/* ========================================
   19. ANIMATIONS & TRANSITIONS
   ======================================== */

/* Pulse animation for important elements */
@keyframes cyberPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(20, 184, 166, 0.2);
    }
    50% { 
        box-shadow: 0 0 40px rgba(20, 184, 166, 0.4);
    }
}

.pulse-effect {
    animation: cyberPulse 2s ease-in-out infinite;
}

/* Glow animation */
@keyframes cyberGlow {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
    }
    50% { 
        text-shadow: 0 0 20px rgba(20, 184, 166, 0.8);
    }
}

.glow-effect {
    animation: cyberGlow 2s ease-in-out infinite;
}

/* ========================================
   20. RESPONSIVE UTILITIES
   ======================================== */

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    body::after {
        background-size: 30px 30px;
    }
    
    .card, .panel, .widget {
        border-radius: 12px !important;
    }
    
    h1, h2, h3 {
        text-shadow: 0 0 10px rgba(20, 184, 166, 0.3) !important;
    }
}

/* ========================================
   21. ACCESSIBILITY FOCUS STATES
   ======================================== */

*:focus-visible {
    outline: 2px solid #14b8a6 !important;
    outline-offset: 2px !important;
}

/* ========================================
   22. PRINT STYLES
   ======================================== */

@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .no-print {
        display: none !important;
    }
}

/* ========================================
   23. UTILITY CLASSES
   ======================================== */

/* Background utilities */
.bg-cyber-primary { background: #14b8a6 !important; }
.bg-cyber-secondary { background: #10b981 !important; }
.bg-cyber-dark { background: #0a0f0a !important; }
.bg-cyber-glass { background: rgba(13, 148, 136, 0.06) !important; }

/* Text color utilities */
.text-cyber-primary { color: #14b8a6 !important; }
.text-cyber-secondary { color: #10b981 !important; }
.text-cyber-light { color: #e0f2e7 !important; }

/* Border utilities */
.border-cyber { border: 1px solid rgba(20, 184, 166, 0.3) !important; }
.border-cyber-thick { border: 2px solid #14b8a6 !important; }

/* Shadow utilities */
.shadow-cyber { box-shadow: 0 0 30px rgba(20, 184, 166, 0.3) !important; }
.shadow-cyber-lg { box-shadow: 0 0 50px rgba(20, 184, 166, 0.4) !important; }

/* Glow utilities */
.glow-cyber { box-shadow: 0 0 20px rgba(20, 184, 166, 0.5) !important; }
.glow-cyber-text { text-shadow: 0 0 10px rgba(20, 184, 166, 0.5) !important; }

/* ========================================
   END OF UNIVERSAL CYBERPUNK STYLING
   ======================================== */