@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/jquery.perfect-scrollbar/1.5.5/css/perfect-scrollbar.min.css');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Orbitron:wght@400;700;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css');
@import url(app.css);

:root {
    --bg-dark: #0a0a1a;
    --bg-card: rgba(10, 10, 26, 0.75);
    --border-cyan: rgba(0, 242, 254, 0.25);
    --border-cyan-glow: rgba(0, 242, 254, 0.6);
    --cyan-primary: #00f2fe;
    --cyan-secondary: #4facfe;
    --text-white: #ffffff;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, #101035 0%, #050515 100%) !important;
    background-color: var(--bg-dark) !important;
    color: var(--text-white) !important;
    overflow-y: auto;
}

/* Sidebar Custom Styling */
#sidebar {
    background: transparent !important;
    backdrop-filter: none !important;
    border-right: none !important;
}

.sidebar-wrapper {
    background: var(--bg-card) !important;
    backdrop-filter: blur(25px) !important;
    border-right: 1px solid var(--border-cyan) !important;
    z-index: 9999 !important;
    position: fixed !important;
}

.sidebar-header .logo a {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.sidebar-item a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 16px !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px 10px;
    display: flex;
    align-items: center;
}

.sidebar-item a i {
    color: #4facfe !important;
    /* Standout icon color: sky blue */
    font-size: 18px !important;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.sidebar-item a:hover {
    background: rgba(127, 0, 255, 0.15) !important;
    /* Cosmic purple-glow */
    color: var(--cyan-primary) !important;
    padding-left: 15px !important;
}

.sidebar-item a:hover i {
    color: var(--cyan-primary) !important;
    /* Glow active icon */
    transform: scale(1.2);
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.8);
}

.sidebar-item.active {
    background: linear-gradient(90deg, rgba(127, 0, 255, 0.25) 0%, rgba(0, 242, 254, 0.05) 100%) !important;
    border-left: 4px solid var(--cyan-primary) !important;
    border-radius: 0 10px 10px 0;
}

.sidebar-item.active a {
    color: var(--cyan-primary) !important;
    font-weight: bold !important;
}

.sidebar-item.active a i {
    color: var(--cyan-primary) !important;
    transform: scale(1.15);
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.8);
}

.sidebar-title {
    font-family: 'Orbitron', sans-serif;
    color: rgba(0, 242, 254, 0.6) !important;
    font-size: 12px !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 20px !important;
    padding-left: 20px !important;
}

/* Card glassmorphism overrides */
.card,
.tab-content,
.auth-logo {
    background: var(--bg-card) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid var(--border-cyan) !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
    color: #fff !important;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--border-cyan) !important;
    color: var(--cyan-primary) !important;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Tables and DataTables styling */
.table-container table,
.table,
.dataTable,
table.dataTable {
    background: rgba(10, 10, 30, 0.4) !important;
    border-collapse: collapse !important;
    border: 1px solid var(--border-cyan) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
}

.table th,
.table td,
table.dataTable th,
table.dataTable td {
    padding: 12px 18px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Header style override */
.table thead th,
table.dataTable thead th,
.table-container table thead tr th {
    background: rgba(10, 10, 30, 0.95) !important;
    border-bottom: 2px solid var(--cyan-primary) !important;
    color: var(--cyan-primary) !important;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Striped rows override - cosmic dark alternating striping */
.table-striped>tbody>tr:nth-of-type(odd),
table.dataTable.table-striped>tbody>tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

.table-striped>tbody>tr:nth-of-type(even),
table.dataTable.table-striped>tbody>tr:nth-of-type(even) {
    background-color: rgba(0, 0, 0, 0.2) !important;
}

/* Hover row styling */
.table tbody tr:hover,
table.dataTable tbody tr:hover,
.table-container table tbody tr:hover {
    background: rgba(0, 242, 254, 0.08) !important;
    transition: all 0.2s ease-in-out;
}

/* DataTables pagination and search UI styling */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: rgba(255, 255, 255, 0.8) !important;
    font-family: 'Space Grotesk', sans-serif;
    margin-top: 15px;
    margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(0, 242, 254, 0.3) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    margin: 0 3px !important;
    padding: 5px 12px !important;
    transition: all 0.3s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, var(--cyan-primary), var(--cyan-secondary)) !important;
    color: #000 !important;
    border-color: var(--cyan-primary) !important;
    font-weight: bold;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(0, 242, 254, 0.2) !important;
    color: var(--cyan-primary) !important;
    border-color: var(--cyan-primary) !important;
}

/* Form elements styling */
input,
select,
textarea {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid var(--border-cyan) !important;
    color: white !important;
    border-radius: 10px !important;
    padding: 10px 15px !important;
    transition: all 0.3s ease !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--cyan-primary) !important;
    box-shadow: 0 0 12px var(--border-cyan-glow) !important;
    outline: none !important;
}

/* Button styling */
.btn-primary,
.btn-warning,
button[type="submit"] {
    background: linear-gradient(135deg, var(--cyan-primary), var(--cyan-secondary)) !important;
    border: none !important;
    color: #000 !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover,
.btn-warning:hover,
button[type="submit"]:hover {
    box-shadow: 0 0 15px var(--border-cyan-glow) !important;
    transform: translateY(-2px) !important;
    color: #000 !important;
}

/* Headings and generic typography */
h1,
h2,
h3,
h4,
h5,
h6,
.auth-title {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-white) !important;
}

.text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

.auth-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--cyan-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Telegram Notification Section */
.telegram-section {
    background: rgba(0, 136, 204, 0.08) !important;
    border: 1px solid rgba(0, 136, 204, 0.3) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    backdrop-filter: blur(10px);
}

.telegram-section h5 {
    color: #2AABEE !important;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

.telegram-section .alert-success {
    background: rgba(0, 200, 100, 0.12) !important;
    border: 1px solid rgba(0, 200, 100, 0.3) !important;
    color: #00ff88 !important;
    border-radius: 10px !important;
}

.telegram-section .alert-info {
    background: rgba(0, 136, 204, 0.12) !important;
    border: 1px solid rgba(0, 136, 204, 0.3) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 10px !important;
}

.telegram-section .btn-outline-danger {
    border-color: rgba(255, 80, 80, 0.5) !important;
    color: #ff5555 !important;
    background: rgba(255, 80, 80, 0.08) !important;
    border-radius: 8px !important;
}

.telegram-section .btn-outline-danger:hover {
    background: rgba(255, 80, 80, 0.2) !important;
    border-color: #ff5555 !important;
}

.telegram-section .btn-outline-secondary {
    border-color: var(--border-cyan) !important;
    color: var(--cyan-primary) !important;
    background: transparent !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
}

.telegram-section .btn-outline-secondary:hover {
    background: rgba(0, 242, 254, 0.1) !important;
}

/* Modal dark styling */
.modal-content {
    background: rgba(10, 10, 30, 0.95) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid var(--border-cyan) !important;
    border-radius: 18px !important;
    color: #fff !important;
}

.modal-header {
    border-bottom: 1px solid var(--border-cyan) !important;
    background: transparent !important;
}

.modal-footer {
    border-top: 1px solid var(--border-cyan) !important;
    background: transparent !important;
}

.modal-title {
    color: var(--cyan-primary) !important;
    font-family: 'Orbitron', sans-serif;
}

.btn-close {
    filter: invert(1) !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border-radius: 8px !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.btn-success {
    background: linear-gradient(135deg, #00c864, #00ff88) !important;
    border: none !important;
    color: #000 !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
}

.btn-success:hover {
    box-shadow: 0 0 15px rgba(0, 200, 100, 0.5) !important;
    transform: translateY(-2px) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ff416c, #ff4b2b) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
}

/* Alert styles for main content */
.alert-success:not(.telegram-section .alert-success) {
    background: rgba(0, 200, 100, 0.12) !important;
    border: 1px solid rgba(0, 200, 100, 0.3) !important;
    color: #00ff88 !important;
}

.alert-danger {
    background: rgba(255, 65, 108, 0.12) !important;
    border: 1px solid rgba(255, 65, 108, 0.3) !important;
    color: #ff6b6b !important;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.12) !important;
    border: 1px solid rgba(255, 193, 7, 0.3) !important;
    color: #ffc107 !important;
}

.alert-info {
    background: rgba(13, 202, 240, 0.12) !important;
    border: 1px solid rgba(13, 202, 240, 0.3) !important;
    color: #0dcaf0 !important;
}

/* Badge styles */
.badge.bg-success {
    background: rgba(0, 200, 100, 0.25) !important;
    color: #00ff88 !important;
    border: 1px solid rgba(0, 200, 100, 0.4) !important;
}

.badge.bg-warning {
    background: rgba(255, 193, 7, 0.25) !important;
    color: #ffc107 !important;
    border: 1px solid rgba(255, 193, 7, 0.4) !important;
}

.badge.bg-danger {
    background: rgba(255, 65, 108, 0.25) !important;
    color: #ff6b6b !important;
    border: 1px solid rgba(255, 65, 108, 0.4) !important;
}

.badge.bg-primary {
    background: rgba(79, 172, 254, 0.25) !important;
    color: #4facfe !important;
    border: 1px solid rgba(79, 172, 254, 0.4) !important;
}

.form-group[class*="has-icon-"].has-icon-left .form-control {
    padding-left: 2.85rem !important;
}
