/* 
    SENDZOX PREMIUM THEME 2026
    Overrides standard Argon / Bootstrap 4 defaults for a hyper-modern look.
    Theme Phase 1
*/

:root {
    /* Sendzox Premium Light Palette */
    --szx-bg: #f0f2f5;
    --szx-surface: #ffffff;
    --szx-surface-glass: rgba(255, 255, 255, 0.9);
    --szx-surface-border: rgba(0, 0, 0, 0.05);

    --szx-primary: #5e72e4;
    --szx-primary-glow: rgba(94, 114, 228, 0.2);
    --szx-accent: #825ee4;
    --szx-success: #2dce89;
    --szx-warning: #fb6340;
    --szx-danger: #f5365c;

    --szx-text-main: #32325d;
    --szx-text-muted: #8898aa;

    --szx-radius-sm: 8px;
    --szx-radius-md: 14px;
    --szx-radius-lg: 24px;

    --szx-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    --szx-shadow-btn: 0 5px 15px var(--szx-primary-glow);
}

/* ========================================= */
/* GLOBAL TYPOGRAPHY & RESET                 */
/* ========================================= */
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--szx-bg) !important;
    background-image: none !important;
    color: var(--szx-text-main) !important;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
    color: var(--szx-text-main) !important;
}

.text-muted {
    color: var(--szx-text-muted) !important;
}

/* Remove argon default backgrounds */
.bg-success,
.bg-gradient-success {
    background: transparent !important;
}

/* Fix navbar top */
.navbar-top {
    background: transparent !important;
    border-bottom: 1px solid var(--szx-surface-border);
    background-color: var(--szx-surface-glass) !important;
    backdrop-filter: blur(20px);
}

/* ========================================= */
/* LAYOUT: SIDEBAR                           */
/* ========================================= */
.navbar-vertical {
    background: var(--szx-surface) !important;
    border-right: 1px solid var(--szx-surface-border) !important;
    box-shadow: 2px 0 24px rgba(0, 0, 0, 0.04) !important;
    width: 250px !important;
    max-width: 250px !important;
    z-index: 1050;
}

.navbar-vertical .navbar-brand-img {
    max-height: 2.5rem;
}

.navbar-vertical .nav-link {
    color: var(--szx-text-muted) !important;
    font-weight: 500;
    border-radius: var(--szx-radius-md);
    margin: 4px 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.navbar-vertical .nav-link:hover {
    color: var(--szx-text-main) !important;
    background: rgba(94, 114, 228, 0.05);
    transform: translateX(4px);
}

.navbar-vertical .nav-link.active {
    background: linear-gradient(90deg, var(--szx-primary), var(--szx-accent)) !important;
    color: #fff !important;
    box-shadow: var(--szx-shadow-btn);
}

.navbar-vertical .nav-link i {
    color: inherit !important;
}

/* ========================================= */
/* LAYOUT: CARDS & WIDGETS                   */
/* ========================================= */
.card {
    background: var(--szx-surface) !important;
    border: 1px solid var(--szx-surface-border) !important;
    border-radius: var(--szx-radius-lg) !important;
    box-shadow: var(--szx-shadow-card) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04) !important;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--szx-surface-border) !important;
    border-radius: var(--szx-radius-lg) var(--szx-radius-lg) 0 0 !important;
}

.card-footer {
    background: transparent !important;
    border-top: 1px solid var(--szx-surface-border) !important;
}

.card-stats .icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    color: #ffffff !important;
}

.card-stats .icon i {
    color: #ffffff !important;
}

/* Base Gradient Overrides */
.bg-gradient-primary {
    background: linear-gradient(87deg, var(--szx-primary) 0, var(--szx-accent) 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(87deg, #2dce89 0, #2dcecc 100%) !important;
}

.bg-gradient-warning {
    background: linear-gradient(87deg, #fb6340 0, #fbb140 100%) !important;
}

.bg-gradient-danger {
    background: linear-gradient(87deg, #f5365c 0, #f56036 100%) !important;
}

.bg-gradient-info {
    background: linear-gradient(87deg, #11cdef 0, #1171ef 100%) !important;
}

/* ========================================= */
/* COMPONENTS: BUTTONS                       */
/* ========================================= */
.btn {
    border-radius: var(--szx-radius-md) !important;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--szx-primary), var(--szx-accent)) !important;
    box-shadow: var(--szx-shadow-btn) !important;
    border: none !important;
}

.btn-primary:active,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--szx-primary-glow) !important;
}

.btn-white {
    background: var(--szx-surface-glass) !important;
    border: 1px solid var(--szx-surface-border) !important;
    color: var(--szx-text-main) !important;
    backdrop-filter: blur(10px);
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* ========================================= */
/* COMPONENTS: FORMS & INPUTS                */
/* ========================================= */
.form-control {
    background: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: var(--szx-radius-sm) !important;
    color: var(--szx-text-main) !important;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    box-shadow: 0 0 0 2px var(--szx-primary-glow) !important;
    border-color: var(--szx-primary) !important;
    background: #ffffff !important;
}

.form-control::placeholder {
    color: var(--szx-text-muted) !important;
    opacity: 0.6;
}

.input-group-text {
    background: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: var(--szx-text-muted) !important;
}

/* ========================================= */
/* TABLES & DATATABLES                       */
/* ========================================= */
.table th {
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--szx-text-muted) !important;
    border-bottom: 1px solid var(--szx-surface-border) !important;
    letter-spacing: 1px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.table td {
    border-bottom: 1px solid var(--szx-surface-border) !important;
    color: var(--szx-text-main);
}

.table-flush td,
.table-flush th {
    border-right: 0;
    border-left: 0;
}

/* ========================================= */
/* ALERTS & NOTIFICATIONS                    */
/* ========================================= */
.alert {
    border-radius: var(--szx-radius-md) !important;
    border: 1px solid var(--szx-surface-border);
    backdrop-filter: blur(10px);
}

.alert-warning {
    background: rgba(251, 99, 64, 0.15) !important;
    color: #fbb140 !important;
    border-color: rgba(251, 99, 64, 0.3) !important;
}

.alert-success {
    background: rgba(45, 206, 137, 0.15) !important;
    color: #2dce89 !important;
    border-color: rgba(45, 206, 137, 0.3) !important;
}

.alert-danger {
    background: rgba(245, 54, 92, 0.1) !important;
    color: #f5365c !important;
    border-color: rgba(245, 54, 92, 0.3) !important;
}

.alert-danger a,
.alert-danger .btn {
    border-radius: 20px;
}

/* ========================================= */
/* UTILITIES                                 */
/* ========================================= */
/* Header background - Remove big blue blob & replace with modern glow */
.header {
    background: transparent !important;
    position: relative;
    border: none !important;
}

.header::before {
    content: '';
    position: absolute;
    top: -20vh;
    left: 0;
    right: 0;
    height: 50vh;
    background: radial-gradient(ellipse at top, rgba(94, 114, 228, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.header>.container-fluid {
    position: relative;
    z-index: 2;
}

/* Fix main content overlap on Desktop */
@media (min-width: 768px) {
    .main-content {
        /* margin-left: 250px !important; */
        transition: all 0.3s ease;
    }
}

/* Card Links */
.card-stats a {
    color: var(--szx-accent);
    font-weight: 500;
    transition: all 0.2s;
}

.card-stats a:hover {
    color: var(--szx-primary);
    text-decoration: none;
}

/* Modal styling */
.modal-content {
    background: var(--szx-surface) !important;
    border: 1px solid var(--szx-surface-border) !important;
    border-radius: var(--szx-radius-lg) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.modal-header {
    border-bottom: 1px solid var(--szx-surface-border) !important;
}

.modal-footer {
    border-top: 1px solid var(--szx-surface-border) !important;
}

.close {
    color: var(--szx-text-muted) !important;
    text-shadow: none;
}