/* 
=============================================================================
Z-TECH ENTERPRISE THEME (Core CSS)
Generated: 2026-03-16
Architecture: Obsidian Gold (Gothic Cyberpunk Enterprise)
============================================================================= 
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

body {
  background-color: #0D0D0D;
  color: #F8F8F8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

::selection {
  background-color: #D4AF37;
  color: #000;
}

  /* ==================== TYPOGRAPHY ==================== */
  .font-serif {
    font-family: 'Cinzel', serif;
  }
  
  .font-mono {
    font-family: 'JetBrains Mono', monospace;
  }
  
  .font-sans {
    font-family: 'Inter', sans-serif;
  }

  /* ==================== BACKGROUNDS & GRIDS ==================== */
  .bg-cyber-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  }

  /* ==================== DASHBOARD SPECIFIC ==================== */
  .dashboard-container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 1.25rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    position: relative;
  }
  
  /* Vanguard 4K TV & Ultrawide Responsiveness Rule */
  @media (min-width: 1920px) {
    .dashboard-container {
      max-width: 90vw;
      padding: 2rem;
    }
  }
  
  .btn-gear {
    background-color: #050505;
    color: #D4AF37;
    border: 1px solid #D4AF37;
    padding: 0.625rem 1rem;
    border-radius: 0.375rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.8);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.1em;
  }
  .btn-gear:hover {
    background-color: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  }
  
  .menu-dropdown {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    background-color: rgba(13, 13, 13, 0.95);
    border: 1px solid #D4AF37;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 0.625rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    min-width: 220px;
  }
  .menu-dropdown.show {
    display: flex;
    animation: fadeIn 0.2s ease-in-out;
  }

  .table-responsive {
    overflow-x: auto;
    width: 100%;
    border-radius: 0.375rem;
    position: relative;
    margin-top: 0.625rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    -webkit-overflow-scrolling: touch;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.05), 0 4px 30px rgba(0, 0, 0, 0.8);
  }
  .dashboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
  }
  .dashboard-table th {
    border-bottom: 2px solid rgba(212, 175, 55, 0.5);
    padding: 0.875rem 0.75rem;
    text-align: left;
    color: #D4AF37;
    font-size: 0.75rem;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.1em;
    background-color: rgba(0, 0, 0, 0.4);
  }
  .dashboard-table th:hover {
    background-color: rgba(212, 175, 55, 0.15);
  }
  .dashboard-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    vertical-align: middle;
    white-space: nowrap;
    background-color: transparent;
  }
  .dashboard-table tr {
    transition: background-color 0.2s;
  }
  .dashboard-table tr:hover td {
    background-color: rgba(212, 175, 55, 0.1);
  }

  .action-col { display: none !important; }
  body.manage-mode .action-col { display: table-cell !important; animation: fadeIn 0.3s; }
  body.manage-mode th:last-child, body.manage-mode td:last-child { position: sticky; right: 0; background-color: #111; z-index: 2; border-left: 1px solid #D4AF37; }
  body.manage-mode thead th:last-child { background-color: #050505; z-index: 3; }
  body.manage-mode tr:hover td:last-child { background-color: #1a1a1a; }

  .filter-input {
    flex: 1 1 0%;
    min-width: 120px;
    padding: 0.625rem;
    background-color: #050505;
    border: 1px solid #444;
    color: #F8F8F8;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s;
  }
  .filter-input:focus {
    border-color: #D4AF37;
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
  }

  .tab-row {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .tab-row::-webkit-scrollbar { display: none; }
  
  .tab-btn {
    padding: 0.375rem 1rem;
    border-radius: 0.375rem;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid #333;
    background-color: #050505;
    color: #888;
    font-family: 'JetBrains Mono', monospace;
  }
  .tab-btn:hover {
    color: #fff;
    border-color: #555;
  }
  .tab-btn.active-cat {
    background-color: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
    border-color: #D4AF37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  }
  .tab-btn.active-grade {
    background-color: #D4AF37;
    color: #000;
    border-color: #D4AF37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
  }

  .modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999 !important;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .modal-content-box {
    background-color: #0A0A0A;
    margin: 5% auto;
    padding: 1.25rem;
    border: 1px solid #D4AF37;
    width: 95%;
    max-width: 650px;
    border-radius: 0.5rem;
    position: relative;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
  }
  @media (min-width: 768px) {
    .modal-content-box {
      padding: 2rem;
      width: 90%;
    }
  }

  .form-group-label {
    display: block;
    color: #D4AF37;
    margin-bottom: 0.375rem;
    font-size: 11px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.1em;
  }
  .form-group-input {
    width: 100%;
    padding: 0.625rem;
    background-color: #050505;
    border: 1px solid #333;
    color: #F8F8F8;
    border-radius: 0.375rem;
    box-sizing: border-box;
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s;
  }
  .form-group-input:focus {
    border-color: #D4AF37;
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: inset 0 0 5px rgba(212, 175, 55, 0.2);
  }
  .form-group-input:disabled, .form-group-input[readonly] {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #111;
  }

  .thumb-img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 0.375rem;
    border: 1px solid #D4AF37;
    cursor: pointer;
    transition: all 0.2s;
  }
  .thumb-img:hover {
    filter: brightness(1.25);
    box-shadow: 0 0 10px #D4AF37;
  }
  .thumb-placeholder {
    width: 45px;
    height: 45px;
    background-color: #222;
    border-radius: 0.375rem;
    border: 1px dashed #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #D4AF37;
    text-align: center;
    cursor: pointer;
  }
  
  .badge-base {
    background-color: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #D4AF37;
  }
  .badge-sativa {
    background-color: rgba(255, 68, 68, 0.1);
    color: #ff6b6b;
    border-color: #ff6b6b;
  }
  .badge-indica {
    background-color: rgba(138, 43, 226, 0.1);
    color: #b162ff;
    border-color: #b162ff;
  }
  .badge-hybrid {
    background-color: rgba(57, 255, 20, 0.1);
    color: #69ff4a;
    border-color: #69ff4a;
  }

  /* ==================== SURFACES & GLASSMORPHISM ==================== */
  .obsidian-glass, .glass-panel, .glass-card {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.05), 0 4px 30px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
  }
  
  .obsidian-glass:hover, .glass-card:hover {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.1), 0 0 25px rgba(212, 175, 55, 0.2);
  }

  /* ==================== EFFECTS & GLOWS ==================== */
  .glow-text-gold {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5), 0 0 20px rgba(212, 175, 55, 0.3);
  }

  .glow-border-gold {
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
    transition: all 0.3s;
  }

  .glow-border-gold:hover {
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-0.125rem);
  }

  .text-gradient-gold {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, #D4AF37, #C5A017);
  }

  /* ==================== INPUTS & CONTROLS ==================== */
  .input-minimal {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-bottom: 1px solid #333;
    border-radius: 0;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    transition: all 0.3s;
  }
  .input-minimal:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-bottom-color: #D4AF37;
    background-color: rgba(212, 175, 55, 0.02);
    box-shadow: 0 2px 5px rgba(212, 175, 55, 0.2);
  }

  /* ==================== BUTTONS ==================== */
  .btn-gold {
    background-color: #D4AF37;
    color: black;
    font-weight: 700;
    border: none;
    border-radius: 0.125rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
  }
  .btn-gold:hover {
    background-color: #C5A017;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-0.125rem);
  }
  
  .btn-outline-gold {
    background-color: transparent;
    color: #D4AF37;
    font-weight: 700;
    border: 1px solid #D4AF37;
    border-radius: 0.125rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s;
  }
  .btn-outline-gold:hover {
    background-color: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
  }

  .btn-danger {
    background-color: rgba(139, 0, 0, 0.2);
    color: #ff6b6b;
    font-weight: 700;
    border: 1px solid rgba(139, 0, 0, 0.5);
    border-radius: 0.125rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s;
  }
  .btn-danger:hover {
    background-color: rgba(139, 0, 0, 0.4);
    border-color: #8B0000;
  }

  /* ==================== ALERTS / STATUS ==================== */
  .status-success {
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #D4AF37;
    font-family: 'JetBrains Mono', monospace;
  }

  .status-error {
    background-color: rgba(139, 0, 0, 0.1);
    border: 1px solid #8B0000;
    color: #ff6b6b;
    font-family: 'JetBrains Mono', monospace;
  }

  /* ==================== ANIMATIONS ==================== */
  .scanline {
    width: 100%;
    height: 150px;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(212, 175, 55, 0.05) 50%, rgba(0,0,0,0) 100%);
    opacity: 0.6;
    position: absolute;
    bottom: 100%;
    animation: scanline 10s linear infinite;
    pointer-events: none;
    z-index: 50;
}

  @keyframes scanline {
    0% { bottom: 100%; }
    100% { bottom: -150px; }
  }

  .fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .spinner-gold {
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    border-left-color: #D4AF37;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
