/* Akıllı Bilişim Custom Styles - Premium Dark Glass Theme */

:root {
    /* Base Colors - Deep Dark */
    --bg-deep: #020202;
    --bg-dark: #0a0a0a;

    /* Brand Colors */
    --brand-blue: #007bff;
    --brand-blue-glow: rgba(0, 123, 255, 0.4);
    --brand-orange: #ff9900;
    --brand-orange-glow: rgba(255, 153, 0, 0.4);

    /* Text Colors */
    --text-white: #ffffff;
    --text-off-white: #f0f0f0;
    --text-gray: #b0b0b0;

    /* Glass Effect Variables */
    --glass-bg-dark: rgba(0, 0, 0, 0.6);
    --glass-bg-card: rgba(20, 20, 20, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.7);
}

body {
    background-color: var(--bg-deep);
    /* Very subtle, dark gradients for depth */
    background-image:
        radial-gradient(circle at 15% 25%, rgba(0, 50, 100, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(100, 50, 0, 0.1) 0%, transparent 45%);
    background-attachment: fixed;
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

/* Glass Panels (Containers) */
.glass-panel {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    padding: 2.5rem;
}

/* Glass Cards (Items) */
.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-white);
    font-weight: 600;
    letter-spacing: -0.5px;
}

p {
    color: var(--text-gray);
    line-height: 1.6;
}

.text-gradient {
    background: linear-gradient(to right, #fff 20%, var(--brand-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.text-orange {
    color: var(--brand-orange) !important;
    text-shadow: 0 0 10px rgba(255, 153, 0, 0.3);
}

/* Buttons */
.btn-glass {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: var(--text-white) !important;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-orange {
    background: linear-gradient(135deg, #ff9900 0%, #ff5500 100%);
    border: none;
    color: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 15px var(--brand-orange-glow);
    padding: 0.6rem 1.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--brand-orange-glow);
    color: #fff;
}

/* Inputs & Forms - Dark Glass Style */
/* Inputs & Forms - Dark Glass Style - Scoped */
.glass-panel .form-control,
.glass-panel .form-select,
.glass-card .form-control,
.glass-card .form-select,
.modal-content .form-control,
.modal-content .form-select,
.navbar-custom .form-control,
.navbar-custom .form-select,
.bg-dark .form-control,
.bg-dark .form-select {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    backdrop-filter: blur(10px);
}

.glass-panel .form-control:focus,
.glass-panel .form-select:focus,
.glass-card .form-control:focus,
.glass-card .form-select:focus,
.modal-content .form-control:focus,
.modal-content .form-select:focus,
.navbar-custom .form-control:focus,
.navbar-custom .form-select:focus,
.bg-dark .form-control:focus,
.bg-dark .form-select:focus {
    background-color: rgba(0, 0, 0, 0.6) !important;
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25) !important;
    color: #fff !important;
}

.glass-panel .form-control::placeholder,
.glass-card .form-control::placeholder,
.modal-content .form-control::placeholder,
.navbar-custom .form-control::placeholder,
.bg-dark .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Navbar Custom */
.navbar-custom {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Utilities */
.text-gray {
    color: var(--text-gray) !important;
}

.bg-dark-glass {
    background: var(--glass-bg-dark);
}

/* Bootstrap Modal Glass Overrides */
.modal-content {
    background: rgba(10, 10, 10, 0.9) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    border-radius: 16px;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title,
.modal-header .close,
.modal-header .btn-close {
    color: #fff !important;
    filter: invert(1);
    /* For svg icons */
}

/* Modal Inputs */
.modal-body .form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.modal-body .form-control:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

/* Modal Close Button Override */
.btn-close {
    background-color: transparent;
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

/* Fix for standard Bootstrap components on light backgrounds (UserSpice Admin) */
.card:not(.glass-card):not(.bg-dark) {
    background-color: #fff;
    color: #333;
}

.table:not(.table-dark) {
    color: #333 !important;
}

.table:not(.table-dark) th,
.table:not(.table-dark) td {
    color: #333 !important;
}

/* Ensure headings in standard cards are dark */
.card:not(.glass-card):not(.bg-dark) h1,
.card:not(.glass-card):not(.bg-dark) h2,
.card:not(.glass-card):not(.bg-dark) h3,
.card:not(.glass-card):not(.bg-dark) h4,
.card:not(.glass-card):not(.bg-dark) h5,
.card:not(.glass-card):not(.bg-dark) h6 {
    color: #333 !important;
}

/* Glass Table Styles */
.table-glass {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-white);
    --bs-table-border-color: rgba(255, 255, 255, 0.1);
}

.table-glass th,
.table-glass td {
    background-color: transparent !important;
    color: var(--text-white) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-glass thead th {
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
    color: var(--brand-orange);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-glass tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.03) !important;
}