:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --accent-color: #818cf8;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-color: #1e293b;
    --secondary-text: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    width: 100%;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e2e8f0 100%);
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.soft-ui {
    background: #f0f2f5;
    color: #344767;
}

#adminContainer {
    background: #f0f2f5;
    min-height: 100vh;
}

.changelog-timeline {
    margin-top: 0;
}

.cl-item {
    position: relative;
    margin: 14px 0 16px;
    padding-left: 18px;
}

.cl-line {
    position: absolute;
    left: 3px;
    top: 0;
    bottom: 0;
    border-left: 2px solid #e5e7eb;
}

.cl-dot {
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #93c5fd, #6477ff);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.cl-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 2px 6px rgba(20, 20, 20, 0.06);
}

.cl-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cl-badge-version {
    background: #eef2ff;
    color: #6366f1;
    border-radius: 9999px;
    padding: 2px 8px;
    font-weight: 600;
    font-size: 12px;
}

.cl-status {
    border-radius: 9999px;
    padding: 2px 8px;
    font-size: 12px;
    border: 1px solid transparent;
    margin-left: auto;
}

.cl-status--ok {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.cl-status--updating {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border-color: #f59e0b;
}

.cl-status--stopped {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    border-color: #ef4444;
}

.cl-body {
    margin-top: 8px;
    white-space: pre-wrap;
    color: #374151;
    line-height: 1.6;
    max-height: none;
    overflow: hidden;
}

.cl-body--collapsed {
    max-height: 94px;
}

.cl-toggle {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    border-radius: 6px;
    padding: 3px 8px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 6px;
}

.cl-delete {
    margin-left: 8px;
    background: #fff;
    border: 1px solid #ef4444;
    color: #ef4444;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
    border-radius: 0;
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: #344767;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 76px;
}

.sidebar-brand i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-section-title {
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8392ab;
    margin-top: 1rem;
}

.nav-item {
    margin: 0.25rem 0.75rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #344767;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    gap: 0.75rem;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 20px 0 rgba(102, 126, 234, 0.4);
}

.main-content {
    margin-left: 250px;
    min-height: 100vh;
    background: #f0f2f5;
    padding: 1.5rem;
    transition: margin-left 0.3s ease;
}

.navbar-top {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    background: #f8f9fa;
    font-size: 0.875rem;
    width: 200px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    width: 250px;
}

.search-box i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8392ab;
}

.navbar-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8392ab;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.navbar-icon:hover {
    background: #667eea;
    color: #fff;
}

.stats-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.stats-card-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.stats-card-icon i {
    font-size: 2rem;
    color: #fff;
}

.stats-card.gradient-purple .stats-card-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px 0 rgba(102, 126, 234, 0.4);
}

.stats-card.gradient-pink .stats-card-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 20px 0 rgba(245, 87, 108, 0.4);
}

.stats-card.gradient-blue .stats-card-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 20px 0 rgba(79, 172, 254, 0.4);
}

.stats-card.gradient-orange .stats-card-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 4px 20px 0 rgba(250, 112, 154, 0.4);
}

.stats-card-label {
    font-size: 0.875rem;
    color: #8392ab;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stats-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #344767;
    margin-bottom: 0.25rem;
}

.stats-card-change {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stats-card-change.positive {
    color: #2dce89;
}

.stats-card-change.negative {
    color: #f5365c;
}

.stats-card-glass {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease;
    color: #fff !important;
}

.stats-card-glass .h4,
.stats-card-glass .small,
.stats-card-glass div {
    color: #fff !important;
}

.stats-card-glass:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2) !important;
}

.content-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    border: none;
}

.content-card-header {
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #344767;
    margin: 0;
}

.btn-soft {
    border: none;
    border-radius: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-soft-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-soft-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.btn-soft-outline {
    background: #fff;
    color: #344767;
    border: 1px solid #e9ecef;
}

.btn-soft-outline:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    border-color: rgba(99, 102, 241, 0.5) !important;
}

#licenseInput {
    text-align: center;
}

#licenseInput:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #6366f1;
    z-index: 1;
    position: relative;
}

.input-group:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
    border-radius: 0.375rem;
    position: relative;
}

.input-group:focus-within #licenseInput {
    border-color: #6366f1;
}

.input-group:focus-within .input-group-text {
    border-color: #6366f1;
}

#versionAnnouncement span {
    white-space: pre-line;
}

.version-card-gradient {
    background: #ffffff !important;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
}

.header-gradient-card {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%) !important;
    border: 1px solid rgba(99, 102, 241, 0.5) !important;
}

.header-gradient-card h1,
.header-gradient-card #productName {
    color: #fff !important;
}

.header-gradient-card .lead,
.header-gradient-card p.lead {
    color: #fff !important;
}

.header-gradient-card .header-icon,
.header-gradient-card .header-icon i {
    color: #fff !important;
}

.icon-container-64 {
    width: 64px;
    height: 64px;
}

.header-icon {
    font-size: 4rem;
    opacity: 0.9;
}

.license-label {
    font-size: 1.25rem;
}

.license-input-group {
    height: 3.5rem;
}

.license-input-group-text {
    font-size: 1.25rem;
    padding: 0 1.25rem;
}

.license-input {
    font-size: 1.1rem;
    padding: 0.875rem 1.25rem;
}

.license-verify-btn {
    font-size: 1.1rem;
    padding: 0.875rem 2rem;
}

.license-help-text {
    font-size: 1rem;
}

.download-btn-lg {
    min-width: 300px;
}

.status-card-item {
    display: flex;
    align-items: center;
}

.status-card-icon {
    border-radius: 50%;
    padding: 0.5rem;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
}

.status-card-icon i {
    font-size: 1rem;
}

.version-info-icon {
    background: white;
    border-radius: 50%;
    padding: 0.5rem;
    margin-right: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.version-info-content {
    flex-grow: 1;
}

.digital-clock {
    position: relative;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    max-width: 700px;
    padding: clamp(20px, 5vw, 50px) clamp(25px, 6vw, 60px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-left: -20px;
}

.digital-clock:before {
    content: '';
    position: absolute;
    background: linear-gradient(45deg, #6366f1, #818cf8, #a5b4fc);
    background-size: 200% 200%;
    top: -5px;
    left: -5px;
    bottom: -5px;
    right: -5px;
    z-index: -1;
    filter: blur(40px);
    opacity: 0.25;
    animation: glowing 10s ease infinite;
}

@keyframes glowing {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

.time {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hours,
.dots,
.minutes {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    padding: 0 clamp(4px, 1vw, 8px);
    line-height: clamp(60px, 12vw, 110px);
}

.hours,
.minutes {
    font-size: clamp(2em, 6vw, 4.5em);
    width: clamp(60px, 12vw, 110px);
}

.dots {
    font-size: clamp(1.8em, 5.5vw, 4em);
    color: #929292;
}

.hours {
    background: -webkit-linear-gradient(90deg, #634dff, #5fd4ff);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.minutes {
    background: -webkit-linear-gradient(90deg, #ff5e9e, #ffb960);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.right-side {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-left: 10px;
}

.period,
.seconds {
    font-size: clamp(0.9em, 2vw, 1.5em);
    font-weight: 500;
}

.period {
    transform: translateY(-20px);
    background: -webkit-linear-gradient(90deg, #f7b63f, #faf879);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.seconds {
    transform: translateY(16px);
    background: -webkit-linear-gradient(90deg, #24ff6d, #2f93f1);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.calender {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(1em, 2.2vw, 1.6em);
    font-weight: 500;
    margin-bottom: 5px;
    background: -webkit-linear-gradient(90deg, #ae4af6, #ff98d1);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

.day-name,
.day-num,
.year {
    margin-left: 8px;
}

.dot-menu-btn {
    position: absolute;
    top: 0;
    right: 0;
    margin: 15px 20px;
    color: #6c757d;
    font-size: 1.5em;
    cursor: pointer;
}

.dot-menu-btn:hover {
    color: #212529;
}

.dot-menu {
    z-index: 999;
    position: absolute;
    top: 12px;
    right: 15px;
    list-style: none;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    visibility: hidden;
    opacity: 0;
    transition: 0.4s ease;
}

.dot-menu.active {
    visibility: visible;
    opacity: 1;
}

.menu-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.clock-format-text {
    color: #212529;
    font-size: 0.9em;
    margin-right: 20px;
}

.format-switch-btn {
    width: 35px;
    height: 15px;
    background: #e9ecef;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 75px;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.1), inset -2px -2px 4px rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.format-switch-btn:before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #6366f1;
    border-radius: 50%;
    box-shadow: 0 5px 25px rgba(99, 102, 241, 0.5);
    transform: translateX(-10px);
    transition: 0.4s ease;
    transition-property: background, transform;
}

.format-switch-btn.active:before {
    background: #10b981;
    box-shadow: 0 5px 25px rgba(16, 185, 129, 0.5);
    transform: translateX(10px);
}

.mt-3 > .row.g-3 {
    align-items: stretch;
}

.mt-3 > .row.g-3 > .col-4 {
    display: flex;
    align-items: stretch;
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .navbar-toggle {
        display: block;
    }
}

@media (min-width: 992px) {
    .navbar-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .digital-clock {
        max-width: 100%;
        padding: clamp(15px, 4vw, 30px) clamp(20px, 5vw, 40px);
    }
    .hours,
    .minutes {
        font-size: clamp(2em, 8vw, 3.5em);
        width: clamp(50px, 10vw, 90px);
    }
    .dots {
        font-size: clamp(1.5em, 7vw, 3em);
    }
    .hours,
    .dots,
    .minutes {
        line-height: clamp(50px, 10vw, 90px);
    }
}

@media (max-width: 576px) {
    .digital-clock {
        padding: clamp(12px, 3vw, 25px) clamp(15px, 4vw, 30px);
    }
    .hours,
    .minutes {
        font-size: clamp(1.8em, 7vw, 3em);
        width: clamp(45px, 9vw, 80px);
    }
    .dots {
        font-size: clamp(1.3em, 6vw, 2.5em);
    }
    .hours,
    .dots,
    .minutes {
        line-height: clamp(45px, 9vw, 80px);
    }
    .period,
    .seconds {
        font-size: clamp(0.8em, 1.8vw, 1.2em);
    }
    .calender {
        font-size: clamp(0.9em, 2vw, 1.3em);
    }
}
