:root {
    --bg-color: #f8f9fa;
    --text-main: #212529;
    --text-muted: #6C757D;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 100, 173, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 100, 173, 0.08);
    --accent-color: #0064AD;
    --accent-green: #A2C75F;
    --transition-speed: 0.4s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #0064AD;
    top: -100px;
    left: -100px;
    opacity: 0.15;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #A2C75F;
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
    opacity: 0.15;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.1); }
}

.container {
    width: 100%;
    max-width: 1000px;
    padding: 2rem;
    z-index: 1;
}

.content-container {
    margin-top: 120px;
}

header.glass-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 100, 173, 0.15));
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-text h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: #1a252f;
    margin: 0;
    line-height: 1.2;
    font-family: 'Inter', system-ui, sans-serif;
}

.brand-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .navbar-brand {
        flex-direction: column;
        gap: 1rem;
    }

    .content-container {
        margin-top: 200px;
    }
}

main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    transition: grid-template-columns 0.5s ease, gap 0.5s ease;
    justify-content: center;
}

main.centered-mode {
    grid-template-columns: minmax(0, 480px) 0fr;
    gap: 0;
}

@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
}

.glass-panel h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    border-bottom: 2px solid rgba(0,0,0,0.05);
    padding-bottom: 0.5rem;
}

/* Form Styles */
.form-panel {
    display: flex;
    flex-direction: column;
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-group > label {
    position: absolute;
    top: -9px;
    left: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #ffffff;
    padding: 0 6px;
    transition: color 0.3s ease;
    z-index: 5;
    pointer-events: none;
    border-radius: 4px;
}

.input-group:focus-within > label {
    color: var(--accent-color);
}

.input-group > input, .input-group > select, .input-group > textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s ease;
}

.input-group > input:focus, .input-group > select:focus, .input-group > textarea:focus {
    border-color: var(--accent-color);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 100, 173, 0.15);
}

/* Chrome, Safari, Edge, Opera hide spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  appearance: textfield;
}

/* Result Panel Styles */
.result-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hidden-panel {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-width: 0 !important;
}

.score-display {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.5s ease;
    transform-origin: 50% 50%;
}

.score-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    z-index: 2;
    transition: color 0.5s ease;
}

.level-indicator {
    z-index: 2;
}

.level-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: rgba(0,0,0,0.05);
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    transition: all 0.5s ease;
}

#level-label {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.5s ease;
}

.status-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, rgba(46, 204, 113, 0.1) 0%, transparent 70%);
    z-index: 0;
    transition: background 0.8s ease;
    pointer-events: none;
}

/* Settings Button */
.icon-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all var(--transition-speed) ease;
    backdrop-filter: blur(8px);
    z-index: 10;
}

.icon-btn:hover {
    background: rgba(0, 100, 173, 0.1);
    transform: rotate(45deg);
    color: var(--accent-color);
    border-color: rgba(0, 100, 173, 0.3);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    opacity: 0;
    transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    padding-bottom: 1rem;
}

.modal-header h2 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--text-main);
}

.settings-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.section-header-row .section-title {
    margin-bottom: 0;
}

.section-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* Split Modal Layout */
.split-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease;
}

.split-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.split-modal-panel {
    width: 95%;
    max-width: 1200px;
    height: 80vh;
    max-height: 700px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    display: flex;
    overflow: hidden;
    position: relative;
    transform: scale(0.95);
    transition: transform var(--transition-speed) ease;
}

.split-modal-overlay.active .split-modal-panel {
    transform: scale(1);
}

.split-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    background: #f1f3f5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}
.split-close:hover {
    background: #e9ecef;
}

.split-left {
    flex: 0 0 35%;
    background: var(--accent-color);
    color: #ffffff;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
}

.split-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 0.5rem;
}

.split-score-box {
    background: rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.split-score-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
}

.split-score-val {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.split-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
}

.split-metric {
    display: flex;
    flex-direction: column;
}

.sm-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    font-weight: 600;
}

.sm-val {
    font-size: 1.2rem;
    font-weight: 700;
}

.split-right {
    flex: 1;
    padding: 3rem;
    overflow-y: auto;
    background: #ffffff;
}

.split-main-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2.5rem;
}

.split-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.split-menu-item {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s ease;
}

.split-menu-item:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

.split-menu-item.active {
    background: #ffffff;
    color: var(--accent-color);
}

.split-submenu {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.split-submenu-item {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    transition: all 0.2s ease;
}

.split-submenu-item:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.05);
}

.split-submenu-item.active {
    color: var(--accent-color);
    background: #ffffff;
}

@media (max-width: 768px) {
    .split-modal-panel {
        flex-direction: column;
        height: 90vh;
        overflow-y: auto;
    }
    .split-left {
        flex: none;
        padding: 2rem;
    }
    .split-metrics {
        grid-template-columns: repeat(3, 1fr);
    }
    .split-right {
        padding: 2rem;
        flex: none;
        overflow-y: visible;
    }
}

/* Redesigned Form Elements inside right side */
.drawer-section {
    margin-bottom: 2.5rem;
}

.drawer-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.clean-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: #f8f9fa;
    transition: all 0.2s ease;
    resize: vertical;
}

.clean-input:focus {
    border-color: var(--accent-color);
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 100, 173, 0.1);
}

.clean-readonly {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
}



/* TTO Form Styles */
.primary-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 100, 173, 0.15);
}

.primary-btn:hover {
    background-color: #00528e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 100, 173, 0.25);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 2.2rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-main);
    user-select: none;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 1.4rem;
    width: 1.4rem;
    background-color: #ffffff;
    border: 2px solid rgba(0,0,0,0.15);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--accent-color);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.mt-3 {
    margin-top: 1.5rem;
}

/* User Management UI */
.subtab-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.subtab-btn:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text-main);
}

.subtab-btn.active {
    background: var(--accent-color);
    color: #ffffff;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th, .data-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.data-table th {
    font-weight: 600;
    color: var(--text-muted);
    background: #f8f9fa;
}

.data-table tr:hover {
    background: rgba(0,0,0,0.02);
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-btn:hover {
    background-color: rgba(0,0,0,0.05);
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s;
    margin-right: 0.5rem;
}

.action-btn:hover {
    color: var(--accent-color);
    background: rgba(0, 100, 173, 0.1);
}

.action-btn.delete:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* Editable Metric */
.editable-metric {
    background: transparent;
    border: 1px solid transparent;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    width: 100%;
    outline: none;
    padding: 0.2rem 0;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.editable-metric:not([readonly]) {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
}

/* Checkbox readonly state */
.custom-checkbox.readonly {
    pointer-events: none;
    opacity: 0.8;
}

/* Dropdown Actions */
.action-dropdown {
    position: relative;
    display: inline-block;
}

.action-dropdown-btn {
    background: #f1f3f5;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: background 0.2s;
}

.action-dropdown-btn:hover, .action-dropdown-btn.active {
    background: #e9ecef;
}

.action-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.3rem;
    background: #fff;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 100;
    flex-direction: column;
    padding: 0.3rem;
}

.action-dropdown-menu.show {
    display: flex;
}

.action-dropdown-item {
    background: transparent;
    border: none;
    padding: 0.6rem 0.8rem;
    text-align: left;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    color: var(--text-main);
    transition: background 0.2s;
}

.action-dropdown-item:hover {
    background: #f8f9fa;
}

.action-dropdown-item.delete {
    color: #e74c3c;
}

.action-dropdown-item.delete:hover {
    background: #fdf0ed;
}

/* Modern Settings Grid */
.settings-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.settings-card {
    display: flex;
    flex-direction: column;
}

.settings-card .info-label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    pointer-events: none;
}

.input-with-icon .input-prefix {
    position: absolute;
    left: 1.1rem;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 1rem;
    pointer-events: none;
}

.clean-input.has-icon, .clean-input.has-prefix {
    padding-left: 2.8rem;
}

/* Uiverse bad-termite-94 Logout Button */
.Btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition-duration: .3s;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199);
  background-color: rgb(255, 65, 65);
}

.sign {
  width: 100%;
  transition-duration: .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sign svg {
  width: 17px;
}

.sign svg path {
  fill: white;
}

.text {
  position: absolute;
  right: 0%;
  width: 0%;
  opacity: 0;
  color: white;
  font-size: 1.2em;
  font-weight: 600;
  transition-duration: .3s;
}

.Btn:hover {
  width: 125px;
  border-radius: 40px;
  transition-duration: .3s;
}

.Btn:hover .sign {
  width: 30%;
  transition-duration: .3s;
  padding-left: 20px;
}

.Btn:hover .text {
  opacity: 1;
  width: 70%;
  transition-duration: .3s;
  padding-right: 10px;
}

.Btn:active {
  transform: translate(2px ,2px);
}
