/* ==========================================================
   CLOUDAMO WHMCS CLEAN DARK THEME
   ========================================================== */

/* 1. SAKRIVANJE STAROG MENIJA TEME */
#header, 
.navbar-main, 
.main-header, 
.header { 
    display: none !important; 
}

/* 2. FIX ZA NAVIGACIJU I FOOTER (Uklanjanje podvlačenja) */
nav a, 
footer a, 
.ca-header a, 
.ca-footer a,
.ca-subnav a {
    text-decoration: none !important;
}

/* 3. FIX ZA SVE OSTALE LINKOVE (Da nisu tirkizni stalno) */
a {
    color: #3b82f6; /* Ugodna plava boja za linkove */
    text-decoration: none !important;
    transition: all 0.2s ease;
}

a:hover {
    color: #00D8FF; /* Na hover postaju Cloudamo tirkizni */
    text-decoration: none !important;
}

/* 4. GLAVNA POZADINA */
body, 
#main-body, 
.main-content, 
.bg-white, 
.bg-light,
.ca-content-area { 
    background-color: #05050A !important; 
    color: #E2E8F0 !important; 
}

/* ==========================================================
   5. COOL CENTRALNI DIO (Animacije, Glow i Hover efekti)
   ========================================================== */

/* Kartice i Paneli */
.card, 
.panel, 
.well, 
.list-group-item { 
    background-color: #12121A !important; 
    border: 1px solid rgba(255, 255, 255, 0.05) !important; 
    border-radius: 16px !important; /* Modernije, jače zaobljene ivice */
    color: #F8FAFC !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important; /* Glatka animacija */
    margin-bottom: 24px !important;
    overflow: hidden;
}

/* Hover efekat na karticama - lagani tirkizni glow */
.card:hover, 
.panel:hover {
    border-color: rgba(0, 216, 255, 0.3) !important;
    box-shadow: 0 10px 40px -10px rgba(0, 216, 255, 0.15) !important;
    transform: translateY(-3px); /* Kartica se lagano podigne */
}

/* Zaglavlja kartica - blagi gradijent */
.card-header, 
.panel-heading {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, transparent 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    letter-spacing: 0.5px;
    padding: 16px 24px !important;
}

.card-footer, 
.panel-footer {
    background-color: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ==========================================================
   6. PREMIUM FORME I INPUTI (Glow efekat na fokus)
   ========================================================== */

input.form-control, 
select.form-control, 
textarea.form-control,
.custom-select { 
    background-color: #0A0A0F !important; 
    border: 1px solid rgba(255, 255, 255, 0.08) !important; 
    color: #fff !important; 
    border-radius: 12px !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
}

/* Kada korisnik klikne u polje */
input.form-control:focus, 
select.form-control:focus, 
textarea.form-control:focus {
    background-color: #000 !important;
    border-color: #00D8FF !important;
    box-shadow: 0 0 20px rgba(0, 216, 255, 0.2) !important; /* Neon glow */
    outline: none !important;
}

/* ==========================================================
   7. MODERNE TABELE 
   ========================================================== */

.table, 
.table-responsive { 
    background-color: transparent !important; 
    color: #E2E8F0 !important; 
    margin-bottom: 0 !important;
}

.table thead th {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-top: none !important;
    color: #9CA3AF !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px !important;
}

.table td, .table th {
    border-top: 1px solid rgba(255, 255, 255, 0.03) !important;
    padding: 16px !important;
    vertical-align: middle !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.01) !important;
}

/* Hover na red u tabeli (npr. tvoji servisi) */
.table-hover tbody tr { transition: all 0.2s ease; }
.table-hover tbody tr:hover {
    background-color: rgba(0, 216, 255, 0.05) !important;
    transform: scale(1.01); /* Red se blago istakne */
}

/* ==========================================================
   8. DUGMAD (Glow i Shadow)
   ========================================================== */

.btn-primary, .btn-success, .btn-info {
    background: linear-gradient(135deg, #00D8FF 0%, #0096FF 100%) !important;
    border: none !important;
    color: #05050A !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    border-radius: 12px !important;
    padding: 10px 24px !important;
    box-shadow: 0 4px 15px rgba(0, 216, 255, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover, .btn-success:hover, .btn-info:hover {
    background: #fff !important;
    color: #05050A !important;
    box-shadow: 0 8px 25px rgba(0, 216, 255, 0.5) !important;
    transform: translateY(-2px);
}

.btn-default {
    background-color: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 10px 24px !important;
    transition: all 0.3s ease !important;
}

.btn-default:hover {
    background-color: rgba(255,255,255,0.1) !important;
    border-color: #00D8FF !important;
    color: #00D8FF !important;
}

/* ==========================================================
   9. WHMCS OBAVIJESTI (Alerts styling)
   ========================================================== */

.alert {
    border: none !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    font-weight: 500 !important;
}

.alert-info {
    background: rgba(0, 216, 255, 0.1) !important;
    border-left: 4px solid #00D8FF !important;
    color: #00D8FF !important;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1) !important;
    border-left: 4px solid #10B981 !important;
    color: #10B981 !important;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    border-left: 4px solid #EF4444 !important;
    color: #EF4444 !important;
}

/* Tekstualni fixovi */
.text-dark, .text-black, h1, h2, h3, h4, h5, h6 { color: #fff !important; }
.text-muted { color: #9CA3AF !important; }
.shadow-sm, .shadow, .shadow-lg { box-shadow: none !important; }

/* 5. CENTRALNI DIO (Kartice i Paneli - ČISTO, BEZ BLURA) */
.card, 
.panel, 
.well, 
.list-group-item { 
    background-color: #12121A !important; /* Solidna tamna boja, bez haosa */
    backdrop-filter: none !important; /* Uklonjen mutni efekat koji je pravio problem */
    border: 1px solid rgba(255, 255, 255, 0.05) !important; 
    color: #F8FAFC !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    margin-bottom: 20px;
}

/* Zaglavlja kartica */
.card-header, 
.panel-heading {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    font-weight: bold;
    padding: 15px 20px !important;
}

.card-footer, 
.panel-footer {
    background-color: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* 6. FORME I INPUTI (Čisti i uredni) */
input.form-control, 
select.form-control, 
textarea.form-control,
.custom-select { 
    background-color: #05050A !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important; 
    color: #fff !important; 
    border-radius: 8px !important;
    padding: 10px 15px !important;
}

input.form-control:focus, 
select.form-control:focus, 
textarea.form-control:focus {
    border-color: #00D8FF !important;
    box-shadow: 0 0 0 1px #00D8FF !important;
    outline: none !important;
}

/* 7. TABELE (Invoices, Services) */
.table, 
.table-responsive { 
    background-color: transparent !important; 
    color: #E2E8F0 !important; 
}

.table thead th {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-top: none !important;
    color: #9CA3AF !important;
    font-size: 12px;
}

.table td, .table th {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.01) !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 216, 255, 0.03) !important;
}

/* 8. WHMCS DUGMAD */
.btn-primary, .btn-success, .btn-info {
    background-color: #00D8FF !important;
    border-color: #00D8FF !important;
    color: #05050A !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
}

.btn-primary:hover, .btn-success:hover, .btn-info:hover {
    background-color: #fff !important;
    border-color: #fff !important;
}

.btn-default {
    background-color: #1C1C26 !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

.btn-default:hover {
    background-color: #2A2A35 !important;
}

/* Tekstualni fixovi */
.text-dark, .text-black, h1, h2, h3, h4, h5, h6 { color: #fff !important; }
.text-muted { color: #9CA3AF !important; }
.shadow-sm, .shadow, .shadow-lg { box-shadow: none !important; }