/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-app: #080b13;
    --bg-card: rgba(16, 24, 48, 0.55);
    --bg-card-solid: #101830;
    --bg-sidebar: rgba(11, 17, 34, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-focus: rgba(0, 242, 254, 0.4);
    
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --text-muted-dark: #6b7280;
    
    --gradient-cyan: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --gradient-purple: linear-gradient(135deg, #b927fc 0%, #8c52ff 100%);
    --gradient-red: linear-gradient(135deg, #f857a6 0%, #ff5858 100%);
    --gradient-green: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-card: linear-gradient(145deg, rgba(20,30,60,0.6) 0%, rgba(10,15,35,0.4) 100%);
    
    --color-cyan: #00f2fe;
    --color-purple: #b927fc;
    --color-red: #ff5858;
    --color-green: #38ef7d;
    --color-warning: #f59e0b;
    
    --shadow-cyan: 0 8px 32px 0 rgba(0, 242, 254, 0.15);
    --shadow-purple: 0 8px 32px 0 rgba(185, 39, 252, 0.15);
    --shadow-red: 0 8px 32px 0 rgba(255, 88, 88, 0.15);
    --shadow-green: 0 8px 32px 0 rgba(56, 239, 125, 0.15);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* App Layout Container */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    background-image: radial-gradient(circle at 10% 20%, rgba(20, 32, 64, 0.15) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(185, 39, 252, 0.05) 0%, transparent 45%);
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    backdrop-filter: blur(20px);
    z-index: 100;
}

.sidebar-brand {
    padding: 30px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--gradient-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.brand-logo i {
    font-size: 24px;
    color: #080b13;
}

.glow-icon {
    animation: iconGlow 3s infinite alternate;
}

@keyframes iconGlow {
    from { filter: drop-shadow(0 0 2px rgba(255,255,255,0.4)); }
    to { filter: drop-shadow(0 0 10px rgba(0,242,254,0.8)); }
}

.brand-text h1 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.brand-text h1 span {
    background: var(--gradient-cyan);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text .badge {
    font-size: 10px;
    font-weight: 600;
    background: rgba(0, 242, 254, 0.1);
    color: var(--color-cyan);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.sidebar-menu {
    flex-grow: 1;
    padding: 24px 16px;
    overflow-y: auto;
}

.sidebar-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.sidebar-menu li a i {
    font-size: 20px;
    transition: var(--transition-smooth);
}

.sidebar-menu li a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-menu li.active a {
    color: #080b13;
    background: var(--gradient-cyan);
    font-weight: 600;
    box-shadow: var(--shadow-cyan);
}

.sidebar-menu li.active a i {
    color: #080b13;
}

.sidebar-menu li .count-badge {
    margin-left: auto;
    background: rgba(255, 88, 88, 0.2);
    color: var(--color-red);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 88, 88, 0.3);
}

.sidebar-menu li.active .count-badge {
    background: #080b13;
    color: var(--color-cyan);
    border-color: rgba(0, 242, 254, 0.4);
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-enroll {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(185, 39, 252, 0.15) 0%, rgba(140, 82, 255, 0.15) 100%);
    border: 1px solid rgba(185, 39, 252, 0.3);
    color: #e2cbff;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(185, 39, 252, 0.05);
}

.btn-enroll:hover {
    background: var(--gradient-purple);
    color: #080b13;
    box-shadow: var(--shadow-purple);
    border-color: transparent;
    transform: translateY(-2px);
}

.btn-enroll i {
    font-size: 18px;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    justify-content: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-green);
    box-shadow: 0 0 10px var(--color-green);
    position: relative;
}

.status-dot.online {
    animation: statusPulse 2s infinite alternate;
}

@keyframes statusPulse {
    0% { transform: scale(1); box-shadow: 0 0 4px var(--color-green); }
    100% { transform: scale(1.3); box-shadow: 0 0 12px var(--color-green); }
}

/* Main Content Styling */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.content-header {
    height: 90px;
    border-bottom: 1px solid var(--border-color);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    background: rgba(8, 11, 19, 0.4);
    flex-shrink: 0;
}

.header-title h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
}

.header-title p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
}

.user-profile {
    display: flex;
    align-items: center;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 13px;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-purple);
}

/* Tab Panels Container */
.tab-panels {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Metric Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.metric-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    pointer-events: none;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-glow-cyan:hover { box-shadow: var(--shadow-cyan); border-color: rgba(0, 242, 254, 0.3); }
.card-glow-green:hover { box-shadow: var(--shadow-green); border-color: rgba(56, 239, 125, 0.3); }
.card-glow-red:hover { box-shadow: var(--shadow-red); border-color: rgba(255, 88, 88, 0.3); }
.card-glow-purple:hover { box-shadow: var(--shadow-purple); border-color: rgba(185, 39, 252, 0.3); }

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.05);
}

.card-glow-cyan .metric-icon { color: var(--color-cyan); background: rgba(0, 242, 254, 0.08); }
.card-glow-green .metric-icon { color: var(--color-green); background: rgba(56, 239, 125, 0.08); }
.card-glow-red .metric-icon { color: var(--color-red); background: rgba(255, 88, 88, 0.08); }
.card-glow-purple .metric-icon { color: var(--color-purple); background: rgba(185, 39, 252, 0.08); }

.metric-details h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.metric-val {
    display: block;
    font-size: 32px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    margin-top: 4px;
    color: var(--text-primary);
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted-dark);
    margin-top: 2px;
}

/* Dashboard Grid Layout (Split View) */
.dashboard-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.split-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h4 {
    font-size: 18px;
    color: var(--text-primary);
}

.view-all-link {
    color: var(--color-cyan);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.view-all-link:hover {
    text-shadow: 0 0 8px var(--color-cyan);
}

.card-body {
    padding: 20px;
    flex-grow: 1;
}

/* Tables and Grid Layout */
.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    overflow: hidden;
}

.table-container {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.data-table th {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: var(--transition-smooth);
}

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

/* Badges and Indicators */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-status.active {
    background: rgba(56, 239, 125, 0.1);
    color: var(--color-green);
    border: 1px solid rgba(56, 239, 125, 0.2);
}

.badge-status.inactive {
    background: rgba(255, 88, 88, 0.1);
    color: var(--color-red);
    border: 1px solid rgba(255, 88, 88, 0.2);
}

.badge-outline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

.badge-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.badge-type i {
    font-size: 16px;
}

/* Search and Filters */
.search-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 20px;
}

.search-input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition-smooth);
    outline: none;
}

.search-input-wrapper input:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.filter-controls {
    display: flex;
    gap: 16px;
}

.filter-controls select {
    padding: 14px 20px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-controls select:focus {
    border-color: var(--color-cyan);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    outline: none;
}

.btn-primary {
    background: var(--gradient-cyan);
    color: #080b13;
    box-shadow: var(--shadow-cyan);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-full {
    width: 100%;
}

/* Banner component */
.banner {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.banner-icon {
    font-size: 24px;
    color: var(--color-warning);
}

.banner-content h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.banner-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Profiles Layout Grid */
.profiles-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
}

.profile-upload-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(15px);
}

.profile-upload-card h4 {
    margin-bottom: 8px;
}

.profile-upload-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.upload-form {
    display: flex;
    flex-direction: column;
}

.dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.01);
}

.dropzone:hover, .dropzone.active {
    border-color: var(--color-cyan);
    background: rgba(0, 242, 254, 0.02);
}

.drop-icon {
    font-size: 40px;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.dropzone:hover .drop-icon {
    color: var(--color-cyan);
    transform: scale(1.1);
}

.dropzone-text {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 500;
}

.dropzone span {
    font-size: 11px;
    color: var(--text-muted);
}

.file-info-box {
    margin-top: 16px;
    padding: 12px;
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s;
}

.file-info-box i {
    font-size: 20px;
    color: var(--color-cyan);
}

.file-info-box span {
    flex-grow: 1;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-remove-file {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    display: flex;
}

.btn-remove-file:hover {
    color: var(--color-red);
}

.profiles-library-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(15px);
    min-height: 400px;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.profile-item-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: var(--transition-smooth);
}

.profile-item-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.profile-info h5 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-info h5 i {
    color: var(--color-cyan);
}

.profile-info p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-meta {
    font-size: 11px;
    color: var(--text-muted-dark);
    margin-top: 8px;
    word-break: break-all;
}

.profile-actions {
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid rgba(255, 88, 88, 0.2);
    color: var(--color-red);
}

.btn-danger-outline:hover {
    background: rgba(255, 88, 88, 0.1);
    border-color: var(--color-red);
}

/* Slide-out details panel */
.slide-pane {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    z-index: 200;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.slide-pane.open {
    visibility: visible;
}

.pane-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-pane.open .pane-backdrop {
    opacity: 1;
}

.pane-content {
    position: absolute;
    top: 0;
    right: -480px;
    width: 480px;
    height: 100%;
    background: var(--bg-card-solid);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-pane.open .pane-content {
    right: 0;
}

.pane-header {
    padding: 24px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pane-title h3 {
    font-size: 20px;
    color: var(--text-primary);
}

.btn-close-pane, .btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    transition: var(--transition-smooth);
}

.btn-close-pane:hover, .btn-close-modal:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.pane-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pane-section h4 {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.btn-action-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-primary);
}

.btn-action-card i {
    font-size: 24px;
    color: var(--color-cyan);
}

.btn-action-card span {
    font-size: 12px;
    font-weight: 500;
}

.btn-action-card:hover {
    background: rgba(0, 242, 254, 0.04);
    border-color: rgba(0, 242, 254, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-cyan);
}

.btn-action-card.btn-danger-action i {
    color: var(--color-red);
}

.btn-action-card.btn-danger-action:hover {
    background: rgba(255, 88, 88, 0.04);
    border-color: rgba(255, 88, 88, 0.3);
    box-shadow: var(--shadow-red);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.info-label {
    color: var(--text-muted);
}

.info-value {
    font-weight: 500;
}

.info-value.text-highlight {
    color: var(--color-cyan);
    font-family: monospace;
    font-size: 13px;
    background: rgba(0, 242, 254, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.info-value.text-small {
    font-size: 11px;
    font-family: monospace;
    word-break: break-all;
    max-width: 260px;
    text-align: right;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header-flex h4 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.assigned-profiles-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.assigned-profile-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-desc h6 {
    font-size: 13px;
    color: var(--text-primary);
}

.profile-desc span {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.profile-status-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-status-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.profile-status-tag.installed { background: rgba(56, 239, 125, 0.1); color: var(--color-green); }
.profile-status-tag.queued { background: rgba(0, 242, 254, 0.1); color: var(--color-cyan); }
.profile-status-tag.pending { background: rgba(245, 158, 11, 0.1); color: var(--color-warning); }
.profile-status-tag.error { background: rgba(255, 88, 88, 0.1); color: var(--color-red); }

.btn-remove-assign {
    background: transparent;
    border: none;
    color: var(--text-muted-dark);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    transition: var(--transition-smooth);
}

.btn-remove-assign:hover {
    color: var(--color-red);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

.modal.open {
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.open .modal-backdrop {
    opacity: 1;
}

.modal-content {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    z-index: 10;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
}

.modal.open .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
}

.modal-header h4 {
    font-size: 18px;
    color: var(--text-primary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    color: var(--text-muted);
}

.form-select {
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.form-select option {
    background: var(--bg-card-solid);
    color: var(--text-primary);
}

/* Confirmation and PIN Modal customizations */
.border-none {
    border: none !important;
}

.justify-content-center {
    justify-content: center !important;
}

.alert-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 88, 88, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--color-red);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 88, 88, 0.2);
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(255, 88, 88, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 88, 88, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 88, 88, 0); }
}

.pin-success-icon {
    font-size: 56px;
    color: var(--color-green);
    margin-bottom: 16px;
}

.pin-display {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 0.1em;
    background: rgba(56, 239, 125, 0.05);
    border: 1px dashed var(--color-green);
    padding: 10px 20px;
    border-radius: 12px;
    display: inline-block;
    color: var(--color-green);
    margin: 16px 0;
}

/* Command Activity Logs */
.mini-logs-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 350px;
    overflow-y: auto;
}

.log-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.01);
    font-size: 13px;
}

.log-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.log-status-dot.Acknowledged { background: var(--color-green); box-shadow: 0 0 6px var(--color-green); }
.log-status-dot.Queued { background: var(--color-cyan); box-shadow: 0 0 6px var(--color-cyan); }
.log-status-dot.Error { background: var(--color-red); box-shadow: 0 0 6px var(--color-red); }
.log-status-dot.NotNow { background: var(--color-warning); box-shadow: 0 0 6px var(--color-warning); }

.log-details {
    flex-grow: 1;
}

.log-msg {
    font-weight: 500;
    color: var(--text-primary);
}

.log-msg span {
    font-weight: 400;
    color: var(--text-muted);
}

.log-time {
    font-size: 11px;
    color: var(--text-muted-dark);
    margin-top: 4px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 400;
}

.toast {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 24px;
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 450px;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.fade-out {
    animation: fadeOutLeft 0.3s ease forwards;
}

@keyframes fadeOutLeft {
    to { transform: translateX(40px); opacity: 0; }
}

.toast-icon {
    font-size: 22px;
}

.toast-success .toast-icon { color: var(--color-green); }
.toast-error .toast-icon { color: var(--color-red); }
.toast-info .toast-icon { color: var(--color-cyan); }

.toast-content {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

/* Utilities */
.text-center { text-align: center !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.py-4 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 2rem !important; padding-right: 2rem !important; }
.text-muted { color: var(--text-muted) !important; }
.text-warning { color: var(--color-warning) !important; }
.loader-icon {
    font-size: 20px;
    margin-right: 8px;
    vertical-align: middle;
}
.btn-danger-confirm {
    background: var(--gradient-red);
    color: white;
    box-shadow: var(--shadow-red);
}
.btn-danger-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 88, 88, 0.35);
}

/* Authentication views toggling */
body.unauthenticated .app-container {
    display: none !important;
}
body.authenticated .login-container {
    display: none !important;
}
body.unauthenticated .login-container {
    display: flex;
}
body.authenticated .app-container {
    display: flex;
}

/* Login Page CSS */
.login-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    background: var(--bg-app);
    background-image: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.1) 0%, transparent 60%),
                      radial-gradient(circle at 10% 20%, rgba(185, 39, 252, 0.05) 0%, transparent 40%);
    padding: 20px;
    z-index: 500;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(25px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(0, 242, 254, 0.05);
    text-align: center;
    animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-logo {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--gradient-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.3);
    margin-bottom: 24px;
}

.login-logo i {
    font-size: 32px;
    color: #080b13;
}

.login-card h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--gradient-cyan);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-card p {
    font-size: 14px;
    margin-bottom: 30px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 20px;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition-smooth);
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.text-left {
    text-align: left !important;
}
