/* BMG Mining Operations - Premium Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Global Styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Premium Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

.loading-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.loading-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Enhanced Loading Dots */
.loading-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading-dots div {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    animation: loading-bounce 1.4s ease-in-out infinite both;
}

.loading-dots div:nth-child(1) { animation-delay: -0.32s; }
.loading-dots div:nth-child(2) { animation-delay: -0.16s; }
.loading-dots div:nth-child(3) { animation-delay: 0s; }
.loading-dots div:nth-child(4) { animation-delay: 0.16s; }

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
    }
}

/* Page Transitions */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Buttons */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.btn-premium:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

/* Form Enhancements */
.form-floating {
    position: relative;
}

.form-floating input,
.form-floating textarea,
.form-floating select {
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-weight: 500;
}

.form-floating input:focus,
.form-floating textarea:focus,
.form-floating select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.form-floating label {
    position: absolute;
    top: 1rem;
    left: 3rem;
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 0%, transparent 45%, white 45%, white 55%, transparent 55%);
    padding: 0 0.5rem;
}

.form-floating input:focus + label,
.form-floating textarea:focus + label,
.form-floating select:focus + label,
.form-floating input:not(:placeholder-shown) + label,
.form-floating textarea:not(:placeholder-shown) + label,
.form-floating select:not([value=""]) + label {
    top: -0.5rem;
    left: 2.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0ea5e9;
    transform: scale(0.9);
}

/* Success States */
.form-success {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.form-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Card Hover Effects */
.card-premium {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card-premium:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
    box-shadow: 
        0 32px 64px -12px rgba(0, 0, 0, 0.15),
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Notification Animations */
.notification {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.removing {
    animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Progress Bars */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #0284c7);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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%); }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    border: none;
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.6);
}

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

/* Status Indicators */
.status-pulse {
    position: relative;
    display: inline-block;
}

.status-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-online::before { background: rgba(34, 197, 94, 0.3); }
.status-warning::before { background: rgba(251, 191, 36, 0.3); }
.status-error::before { background: rgba(239, 68, 68, 0.3); }

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.4);
        opacity: 0;
    }
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tooltip:hover::after,
.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-premium {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .btn-premium {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .fab {
        bottom: 1rem;
        right: 1rem;
        width: 56px;
        height: 56px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .card-premium {
        background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
        border-color: rgba(255, 255, 255, 0.1);
        color: #f8fafc;
    }
    
    .form-floating input,
    .form-floating textarea,
    .form-floating select {
        background: rgba(30, 41, 59, 0.9);
        border-color: #374151;
        color: #f8fafc;
    }
    
    .form-floating label {
        color: #9ca3af;
    }
    
    .skeleton {
        background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
        background-size: 200% 100%;
    }
}

/* Print Styles */
@media print {
    .loading-screen,
    .fab,
    .tooltip::after,
    .tooltip::before {
        display: none !important;
    }
    
    .card-premium {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-premium {
        border: 2px solid currentColor;
    }
    
    .form-floating input,
    .form-floating textarea,
    .form-floating select {
        border-width: 2px;
    }
    
    .card-premium {
        border: 2px solid #374151;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .loading-dots div {
        animation: none;
    }
    
    .progress-fill::after {
        animation: none;
    }
    
    .skeleton {
        animation: none;
        background: #f0f0f0;
    }
} 

/* Field-Ready, High-Contrast, Mobile-Friendly, Dark Mode Styles */
body, .dashboard-container.field-ready {
  background: #181818 !important;
  color: #fff !important;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.action-btn, .help-btn {
  font-size: 1.2em !important;
  padding: 1.2em 0.5em !important;
  border-radius: 12px !important;
  border: 2px solid #ffd700 !important;
  background: #222 !important;
  color: #ffd700 !important;
  font-weight: bold !important;
  margin-bottom: 1vw !important;
  box-shadow: 0 0 8px #0006 !important;
  transition: background 0.2s, color 0.2s !important;
}
.action-btn:hover, .action-btn:focus, .help-btn:hover, .help-btn:focus {
  background: #ffd700 !important;
  color: #222 !important;
}
.whatsapp-btn {
  background: #25d366 !important;
  color: #222 !important;
  border: 2px solid #25d366 !important;
}
.kpi-card {
  font-size: 1.3em !important;
  padding: 1.5em 1em !important;
  border-radius: 12px !important;
  background: #222 !important;
  color: #ffd700 !important;
  box-shadow: 0 0 8px #0006 !important;
}
.gold-bg { background: linear-gradient(90deg, #ffd700 60%, #b8860b 100%) !important; color: #222 !important; }
.crew-bg { background: #1e90ff !important; color: #fff !important; }
.risk-bg { background: #ff4136 !important; color: #fff !important; }
.kpi-label { font-size: 1em !important; font-weight: bold !important; }
.kpi-value { font-size: 2.2em !important; font-weight: bold !important; margin-top: 0.3em !important; }
@media (max-width: 700px) {
  .dashboard-container { padding: 1vw !important; }
  .dashboard-header h1 { font-size: 1.3em !important; }
  .dashboard-actions, .kpi-section, .ops-list { flex-direction: column !important; gap: 2vw !important; }
  .kpi-card, .op-card { font-size: 1em !important; }
} 