/* Glazzed Dashboard - Main Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0f1a;
    --bg-gradient: linear-gradient(135deg, #0f1729 0%, #1a1f3c 25%, #0d1526 50%, #0f1a2e 100%);
    --glass-bg: rgba(20, 30, 60, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-orange: #f97316;
    --accent-yellow: #eab308;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --sidebar-active: #e14eca;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Enhancement */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 60%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.dashboard-wrapper {
    display: flex;
    position: relative;
    z-index: 1;
}

/* ========== AUTH PAGES ========== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--glass-shadow);
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.auth-card .form-group {
    margin-bottom: 20px;
}

.auth-card .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.auth-card .form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-card .form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.auth-card .form-control::placeholder {
    color: var(--text-muted);
}

.auth-card .btn-block {
    width: 100%;
    padding: 14px 20px;
    margin-top: 10px;
}

.auth-card .btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-card .btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.auth-footer a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.auth-card .alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.auth-card .alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* ========== SIDEBAR ========== */
.sidebar {
    width: 220px;
    min-height: 100vh;
    background: rgba(15, 25, 50, 0.85);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-icons {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.icon-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.icon-btn.red {
    background: #ff5f57;
}

.icon-btn.yellow {
    background: #febc2e;
}

.icon-btn.green {
    background: #28c840;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 8px 12px;
    color: var(--text-muted);
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 12px;
    width: 100%;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* User Profile */
.user-profile {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.user-profile .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent-cyan);
    overflow: hidden;
    margin: 0 auto 10px;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.user-profile .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-info span {
    font-size: 11px;
    color: var(--text-muted);
}

.user-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.user-stats .stat {
    text-align: center;
}

.user-stats .number {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-stats .label {
    font-size: 9px;
    color: var(--accent-green);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 15px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--sidebar-active);
    box-shadow: 0 0 10px var(--sidebar-active);
}

.nav-item.highlight {
    color: var(--sidebar-active);
}

.nav-item .badge {
    margin-left: auto;
    background: var(--accent-cyan);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
}

.nav-group .submenu {
    padding-left: 48px;
}

.nav-group .submenu a {
    display: block;
    padding: 6px 0;
    color: var(--text-muted);
    font-size: 11px;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-group .submenu a:hover {
    color: var(--text-primary);
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.sidebar-footer .brand {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.sidebar-footer .copyright {
    font-size: 9px;
    color: var(--text-muted);
}

/* ========== MAIN CONTENT ========== */
.main-content {
    flex: 1;
    margin-left: 220px;
    padding: 20px 30px;
    min-height: 100vh;
}

/* Top Bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.page-title h1 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 3px;
}

.page-title .breadcrumb {
    font-size: 11px;
    color: var(--text-muted);
}

.date-filters {
    display: flex;
    gap: 5px;
}

.date-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
}

.date-btn:hover,
.date-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.date-btn.date-picker {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.live-badge {
    background: var(--accent-green);
    color: white;
    font-size: 9px;
    padding: 3px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Resume Section */
.resume-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 20px 0;
}

.resume-text h2 {
    font-size: 28px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 10px;
}

.resume-text p {
    font-size: 11px;
    color: var(--text-muted);
    max-width: 200px;
    line-height: 1.5;
}

.stats-row {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    position: relative;
}

.stat-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-top-color: transparent;
}

.stat-icon.blue {
    color: var(--accent-blue);
}

.stat-icon.purple {
    color: var(--accent-purple);
}

.stat-icon.cyan {
    color: var(--accent-cyan);
}

.stat-value {
    font-size: 24px;
    font-weight: 300;
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.3;
}

.stat-change {
    font-size: 10px;
    color: var(--accent-green);
}

/* ========== WIDGETS ========== */
.widget {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.widget:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--glass-shadow);
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.widget-title svg {
    opacity: 0.7;
}

.widget-actions {
    display: flex;
    gap: 5px;
}

.action-btn {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 3px;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.widget-body {
    padding: 15px;
}

/* Charts Row */
.charts-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Statistics Widget */
.statistics-widget .chart-legend {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.blue {
    background: var(--accent-blue);
}

.dot.green {
    background: var(--accent-green);
}

.dot.red {
    background: var(--accent-red);
}

.stat-info {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.stat-info .visits {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-area {
    height: 120px;
    position: relative;
    margin-bottom: 15px;
}

.chart-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.chart-dots .dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.chart-dots .dot.active,
.chart-dots .dot:hover {
    background: var(--accent-cyan);
}

/* Pie Widget */
.pie-widget .pie-header {
    text-align: right;
    margin-bottom: 15px;
}

.total-balance {
    font-size: 16px;
    font-weight: 600;
}

.total-balance .label {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 5px;
}

.pie-chart-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.pie-chart {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-red) 0deg 108deg,
            var(--accent-blue) 108deg 244deg,
            var(--accent-green) 244deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pie-center {
    width: 80px;
    height: 80px;
    background: rgba(15, 25, 50, 0.95);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pie-value {
    font-size: 22px;
    font-weight: 600;
    color: var(--accent-cyan);
}

.pie-label {
    font-size: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.pie-legend {
    display: flex;
    justify-content: center;
}

.legend-row {
    display: flex;
    gap: 25px;
}

.pie-legend .legend-item {
    text-align: center;
    font-size: 10px;
    color: var(--text-muted);
}

.pie-legend .legend-item .dot {
    margin: 0 auto 5px;
}

/* Glass Cards for Welcome Section */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-cyan);
}

.glass-card h5 {
    font-size: 16px;
    font-weight: 600;
}

.glass-card .btn {
    width: 100%;
    margin-top: 10px;
}

.alert-glass {
    background: rgba(29, 140, 248, 0.15);
    border: 1px solid rgba(29, 140, 248, 0.4);
    border-radius: 12px;
    padding: 24px;
    color: var(--text-primary);
    backdrop-filter: blur(5px);
    margin-bottom: 30px;
}

/* Widgets Row */
/* Widgets Row - Grid removed to use Bootstrap */
.widgets-row {
    margin-bottom: 20px;
}

/* Messages Widget */
.messages-widget .tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab:hover,
.tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.messages-list {
    max-height: 280px;
    overflow-y: auto;
}

.message-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

.message-item:last-child {
    border-bottom: none;
}

.message-item .avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.message-header strong {
    font-size: 12px;
    color: var(--accent-cyan);
}

.message-header .source {
    font-size: 10px;
    color: var(--text-muted);
}

.message-header .time {
    font-size: 10px;
    color: var(--text-muted);
    margin-left: auto;
}

.message-content p {
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.message-actions {
    display: flex;
    gap: 10px;
}

.message-actions button {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.message-actions button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.messages-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.compose {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 8px 15px;
}

.compose-icon {
    font-size: 14px;
    color: var(--text-muted);
}

.compose input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 12px;
    outline: none;
}

.compose input::placeholder {
    color: var(--text-muted);
}

/* Members Widget */
.members-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.members-header .total {
    font-size: 11px;
    color: var(--text-muted);
}

.members-header strong {
    color: var(--text-primary);
}

.sort-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.members-list {
    margin-bottom: 15px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}

.member-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.member-info strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
}

.member-info span {
    font-size: 10px;
    color: var(--text-muted);
}

.member-details {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 11px;
}

.detail-row .label {
    color: var(--text-muted);
}

.detail-row .value {
    color: var(--text-secondary);
}

.detail-row .messages-count {
    background: var(--accent-cyan);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
}

.members-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}

.load-more {
    background: transparent;
    border: none;
    color: var(--accent-cyan);
    font-size: 11px;
    cursor: pointer;
}

.search-members input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 15px;
    outline: none;
}

/* Alerts Widget */
.alert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.alert-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.alert-item.success .alert-icon {
    background: var(--accent-green);
    color: white;
}

.alert-item.warning .alert-icon {
    background: var(--accent-orange);
    color: white;
}

.alert-item.info .alert-icon {
    background: var(--accent-cyan);
    color: white;
}

.alert-item.error .alert-icon {
    background: var(--accent-red);
    color: white;
}

.alert-text {
    flex: 1;
    font-size: 11px;
    color: var(--text-secondary);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 0 5px;
}

/* Media Widget */
.media-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.media-table th {
    text-align: left;
    padding: 8px 10px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--glass-border);
}

.media-table td {
    padding: 12px 10px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
}

.post-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-cell img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.post-cell span {
    font-weight: 600;
    color: var(--text-primary);
}

.edit-btn {
    background: var(--accent-orange);
    border: none;
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-btn.blue {
    background: var(--accent-blue);
}

.edit-btn:hover {
    opacity: 0.8;
}

/* UI Elements Widget */
.ui-section {
    margin-bottom: 20px;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.toggle-label {
    font-size: 11px;
    color: var(--text-muted);
    min-width: 30px;
}

.toggle {
    position: relative;
    width: 40px;
    height: 20px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: .3s;
}

.toggle .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: .3s;
}

.toggle input:checked+.slider {
    background-color: var(--accent-green);
}

.toggle input:checked+.slider:before {
    transform: translateX(20px);
}

.color-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-dot:hover {
    transform: scale(1.1);
}

.color-dot.blue {
    background: var(--accent-blue);
}

.color-dot.blue-light {
    background: #60a5fa;
}

.color-dot.purple {
    background: var(--accent-purple);
}

.color-dot.pink {
    background: var(--accent-pink);
}

.color-dot.red {
    background: var(--accent-red);
}

.color-dot.orange {
    background: var(--accent-orange);
}

.color-dot.yellow {
    background: var(--accent-yellow);
}

.color-dot.green {
    background: var(--accent-green);
}

.color-dot.teal {
    background: #14b8a6;
}

.color-dot.cyan {
    background: var(--accent-cyan);
}

.slider-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.range-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-cyan);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.range-value {
    font-size: 11px;
    color: var(--text-muted);
    min-width: 40px;
}

/* Buttons Widget */
.btn-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-label {
    font-size: 10px;
    color: var(--text-muted);
    min-width: 40px;
}

.demo-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: capitalize;
}

.demo-btn.active {
    background: var(--accent-blue);
    color: white;
}

.demo-btn.normal {
    background: rgba(59, 130, 246, 0.3);
    color: var(--accent-blue);
}

.demo-btn.hover {
    background: rgba(59, 130, 246, 0.5);
    color: white;
}

.demo-btn.green {
    background: var(--accent-green);
    color: white;
}

.demo-btn.yellow {
    background: var(--accent-yellow);
    color: #000;
}

.demo-btn.red {
    background: var(--accent-red);
    color: white;
}

.demo-btn.dark {
    background: #1e293b;
    color: white;
}

.demo-btn.white {
    background: white;
    color: #1e293b;
}

.demo-btn.outline {
    background: transparent;
    border: 1px solid var(--accent-pink);
    color: var(--accent-pink);
}

.demo-btn.outline-red {
    background: transparent;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}

.demo-btn.outline-blue {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

.demo-btn.dropdown {
    background: var(--accent-pink);
    color: white;
}

.demo-select {
    padding: 8px 25px 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 10px;
    cursor: pointer;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Avatar Placeholder */
.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    color: white;
}

/* No Sidebar Layout */
.main-content.no-sidebar {
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-content.no-sidebar .page-content {
    max-width: 500px;
    width: 100%;
}

/* Logout Link */
.logout-link {
    display: block;
    margin-top: 10px;
    font-size: 11px;
    color: var(--accent-red);
    text-decoration: none;
    transition: color 0.2s;
}

.logout-link:hover {
    color: #ff6b6b;
}

/* Date Info */
.date-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

/* Page Content */
.page-content {
    padding: 20px 0;
}

/* Cards for PHP App */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--glass-shadow);
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 20px;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
}

.table th {
    text-align: left;
    padding: 12px 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
}

.table td {
    padding: 12px 15px;
    font-size: 13px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--accent-green);
    color: white;
}

.btn-danger {
    background: var(--accent-red);
    color: white;
}

.btn-warning {
    background: var(--accent-orange);
    color: white;
}

.btn-info {
    background: var(--accent-cyan);
    color: white;
}

.btn-outline-light {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 11px;
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--accent-cyan);
    padding: 0;
}

/* Forms */
.form-control,
.form-select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    transition: all 0.2s;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 20px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}

.alert-warning {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
}

.bg-success {
    background: var(--accent-green) !important;
    color: white;
}

.bg-danger {
    background: var(--accent-red) !important;
    color: white;
}

.bg-warning {
    background: var(--accent-orange) !important;
    color: white;
}

.bg-info {
    background: var(--accent-cyan) !important;
    color: white;
}

/* Bootstrap Overrides for Dark Theme */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.table {
    color: var(--text-secondary);
    border-color: var(--glass-border);
}

.table>:not(caption)>*>* {
    background-color: transparent;
    color: var(--text-secondary);
    border-bottom-color: var(--glass-border);
}

.table thead th {
    color: var(--accent-cyan);
    border-bottom: 2px solid var(--glass-border);
}

/* Stats Cards */
.card-stats {
    /* Removed display: flex to allow Bootstrap card-body to work */
    position: relative;
    overflow: hidden;
}

.card-stats .card-body {
    padding: 15px;
}

.card-stats .info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-stats .info-icon.icon-warning {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
}

.card-stats .info-icon.icon-shape {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
}

.card-stats .info-icon.icon-puzzle-10 {
    background: linear-gradient(135deg, var(--accent-green), #14b8a6);
}

.card-stats .info-icon.icon-send {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
}

.card-stats .numbers .card-category {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.card-stats .numbers .card-title {
    font-size: 22px;
    font-weight: 600;
}

/* Text Colors */
.text-primary {
    color: var(--accent-blue) !important;
}

.text-success {
    color: var(--accent-green) !important;
}

.text-danger {
    color: var(--accent-red) !important;
}

.text-warning {
    color: var(--accent-orange) !important;
}

.text-info {
    color: var(--accent-cyan) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-white {
    color: var(--text-primary) !important;
}

/* Utility Classes */
.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.p-4 {
    padding: 1.5rem;
}

.text-center {
    text-align: center;
}

/* Row and Columns */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-12 {
    width: 100%;
    padding: 0 10px;
}

.col-lg-3 {
    width: 25%;
    padding: 0 10px;
}

.col-lg-6 {
    width: 50%;
    padding: 0 10px;
}

.col-md-6 {
    width: 50%;
    padding: 0 10px;
}

@media (max-width: 992px) {
    .col-lg-3 {
        width: 50%;
    }

    .col-lg-6 {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .col-md-6 {
        width: 100%;
    }

    .col-lg-3 {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 1200px) {

    .charts-row,
    .widgets-row {
        grid-template-columns: 1fr;
    }

    .stats-row {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .top-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

}

.table {
    color: var(--text-secondary);
    border-color: var(--glass-border);
}

.table>:not(caption)>*>* {
    background-color: transparent;
    color: var(--text-secondary);
    border-bottom-color: var(--glass-border);
}

.table thead th {
    color: var(--accent-cyan);
    border-bottom: 2px solid var(--glass-border);
}

/* Stats Cards */
.card-stats {
    /* Removed display: flex to allow Bootstrap card-body to work */
    position: relative;
    overflow: hidden;
}

.card-stats .card-body {
    padding: 15px;
}

.card-stats .info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-stats .info-icon.icon-warning {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
}

.card-stats .info-icon.icon-shape {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
}

.card-stats .info-icon.icon-puzzle-10 {
    background: linear-gradient(135deg, var(--accent-green), #14b8a6);
}

.card-stats .info-icon.icon-send {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
}

.card-stats .numbers .card-category {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.card-stats .numbers .card-title {
    font-size: 22px;
    font-weight: 600;
}

/* Text Colors */
.text-primary {
    color: var(--accent-blue) !important;
}

.text-success {
    color: var(--accent-green) !important;
}

.text-danger {
    color: var(--accent-red) !important;
}

.text-warning {
    color: var(--accent-orange) !important;
}

.text-info {
    color: var(--accent-cyan) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-white {
    color: var(--text-primary) !important;
}

/* Utility Classes */
.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.p-4 {
    padding: 1.5rem;
}

.text-center {
    text-align: center;
}

/* Row and Columns */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-12 {
    width: 100%;
    padding: 0 10px;
}

.col-lg-3 {
    width: 25%;
    padding: 0 10px;
}

.col-lg-6 {
    width: 50%;
    padding: 0 10px;
}

.col-md-6 {
    width: 50%;
    padding: 0 10px;
}

@media (max-width: 992px) {
    .col-lg-3 {
        width: 50%;
    }

    .col-lg-6 {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .col-md-6 {
        width: 100%;
    }

    .col-lg-3 {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 1200px) {

    .charts-row,
    .widgets-row {
        grid-template-columns: 1fr;
    }

    .stats-row {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .top-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .resume-section {
        flex-direction: column;
        gap: 20px;
    }
}

.form-select option {
    background-color: #1a1f3c !important;
    color: white !important;
}
/* Disabled inputs fix */
.form-control:disabled, .form-select:disabled {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    opacity: 1 !important;
}
