body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Dark fallback color in case image is missing */
    background-color: #1a1a2e;
    /* Placeholder for the background image. User needs to place the file. */
    background-image: url('../img/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    color: white;
}

/* Layout Structure */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex-shrink: 0;
}

.sidebar-header {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-header h3 {
    margin: 0;
    color: #4a90e2;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.nav-links li {
    margin-bottom: 10px;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    background: rgba(74, 144, 226, 0.2);
    color: #fff;
}

.nav-links i {
    width: 25px;
    margin-right: 10px;
}

.nav-header {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 20px 0 10px 15px;
    letter-spacing: 1px;
}

.user-info {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logout-btn {
    color: #ff6b6b;
    text-decoration: none;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.dashboard-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(74, 144, 226, 0.5);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #4a90e2;
}

.card-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.card-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Specific Card Styles */
.admin-card .card-icon {
    color: #e2b74a;
}

.main-admin-card .card-icon {
    color: #e24a4a;
}

/* Login Page Specifics (keeping existing but adjusting body selector) */
.login-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px); /* Glass effect */
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-container h2 {
    margin-bottom: 30px;
    color: #fff;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ddd;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    box-sizing: border-box;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: #4a90e2;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s;
    margin-top: 10px;
}

.btn-login:hover {
    background: #357abd;
}

.btn-login:active {
    transform: scale(0.98);
}

/* Work Page Styles - New Grid Layout */
.work-container-full {
    max-width: 1400px;
    margin: 0 auto;
    height: calc(100vh - 100px); /* Adjust based on header/padding */
}

.work-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
    height: 100%;
}

.client-profile-col, .work-area-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.glass-panel {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
}

/* Profile Card */
.profile-card {
    flex-grow: 0;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #4a90e2;
}

.profile-main-info h2 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.status-badge {
    background: #4a90e2;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.phone-section {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.phone-number-large {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.phone-number-large:hover {
    background: rgba(255, 255, 255, 0.1);
}

.phone-number-large i {
    font-size: 1rem;
    opacity: 0.5;
}

.operator-info {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.operator-name {
    font-weight: 500;
}

.old-operator {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
}

.new-operator {
    color: #fff;
    font-weight: 600;
}

.operator-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.ported-badge {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.comm-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.comm-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 8px;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.2s;
}

.comm-btn-icon:hover {
    transform: translateY(-2px);
}

.comm-btn-icon.telegram { background: #0088cc; }
.comm-btn-icon.whatsapp { background: #25D366; }
.comm-btn-icon.microsip { background: #555; }

.info-table {
    font-size: 0.9rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: #aaa;
}

/* Actions Panel */
.actions-panel {
    flex-grow: 1;
}

.actions-panel h3 {
    margin-top: 0;
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 15px;
}

.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.action-btn-lg {
    padding: 15px 10px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: filter 0.2s;
}

.action-btn-lg:hover { filter: brightness(1.1); }
.action-btn-lg.passed { background: #28a745; }
.action-btn-lg.no-answer { background: #ffc107; color: #000; }
.action-btn-lg.bum { background: #dc3545; }
.action-btn-lg.age { background: #17a2b8; }
.action-btn-lg.dozvon { background: #007bff; }

/* Script Panel */
.script-panel {
    flex-grow: 0;
}

.panel-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #4a90e2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-controls {
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
    padding: 0;
}

.icon-btn:hover {
    color: #fff;
}

.script-content {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #eee;
    min-height: 100px;
    white-space: pre-wrap; /* Preserve whitespace and line breaks */
}

.script-content p {
    margin-bottom: 10px;
}

.script-content .tip {
    background: rgba(255, 193, 7, 0.1);
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid #ffc107;
    margin-top: 15px;
}

.script-edit-form textarea {
    width: 100%;
    height: 200px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    color: white;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.script-edit-form textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.script-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-save-script {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn-cancel-script {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-save-script:hover { background: #218838; }
.btn-cancel-script:hover { background: rgba(255, 255, 255, 0.2); }

/* Notes Panel */
.notes-panel {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.notes-timeline {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
    max-height: 300px; /* Limit height */
}

.timeline-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.timeline-marker {
    width: 2px;
    background: #4a90e2;
    position: relative;
    margin-left: 5px;
}

.timeline-marker::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #4a90e2;
    border-radius: 50%;
    position: absolute;
    left: -4px;
    top: 5px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    flex-grow: 1;
}

.timeline-date {
    font-size: 0.75rem;
    color: #aaa;
    display: block;
    margin-bottom: 5px;
}

.timeline-content p {
    margin: 0;
    font-size: 0.9rem;
}

.input-wrapper {
    display: flex;
    gap: 10px;
}

.new-note-form textarea {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    color: white;
    resize: none;
    height: 40px;
    font-family: inherit;
}

.new-note-form textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.btn-send-note {
    width: 50px;
    background: #4a90e2;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-send-note:hover {
    background: #357abd;
}

.copy-feedback {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    margin-top: 5px;
    z-index: 10;
}

.no-leads-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.no-leads-container .glass-panel {
    text-align: center;
    padding: 50px;
}

.no-leads-container i {
    color: #28a745;
    margin-bottom: 20px;
}


/* Notes Section */
.notes-section {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.notes-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #ddd;
}

.notes-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
}

.note-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 3px solid #4a90e2;
}

.note-date {
    display: block;
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 5px;
}

.note-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Upload Page Styles */
.upload-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
}

.upload-panel {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.upload-desc {
    color: #aaa;
    margin-bottom: 30px;
}

.file-drop-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 40px 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.file-drop-area:hover, .file-drop-area.highlight {
    border-color: #4a90e2;
    background: rgba(74, 144, 226, 0.1);
}

.file-icon {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 15px;
    display: block;
}

.file-msg {
    color: #ddd;
    font-size: 1.1rem;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-settings {
    text-align: left;
    margin-bottom: 20px;
    padding: 0 10px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.upload-settings label {
    display: block;
    margin-bottom: 8px;
    color: #ddd;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #4a90e2;
    background: rgba(255, 255, 255, 0.15);
}

.file-name {
    display: none;
    margin-top: 10px;
    color: #4a90e2;
    font-weight: 600;
}

.upload-options {
    text-align: left;
    margin-bottom: 20px;
    padding: 0 10px;
}

/* Employee Form */
.form-panel {
    max-width: 500px;
    margin: 0 auto;
}

.employee-form .form-group {
    margin-bottom: 20px;
}

.employee-form label {
    display: block;
    margin-bottom: 8px;
    color: #ddd;
}

.employee-form select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}

.employee-form select.form-input option {
    background: #333;
    color: white;
}

/* General Select Options Fix */
select.form-input option {
    background: #1a1a2e; /* Dark background matching body */
    color: white;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* User Assignment Checkboxes */
.users-list-scroll {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.user-checkbox-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
    position: relative;
}

.user-checkbox-item:last-child {
    border-bottom: none;
}

.user-checkbox-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-checkbox-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark-box {
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 15px;
    position: relative;
}

.user-checkbox-item input:checked ~ .checkmark-box {
    background-color: #4a90e2;
    border-color: #4a90e2;
}

.checkmark-box:after {
    content: "";
    position: absolute;
    display: none;
}

.user-checkbox-item input:checked ~ .checkmark-box:after {
    display: block;
}

.user-checkbox-item .checkmark-box:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.user-name {
    flex-grow: 1;
    font-size: 1rem;
}

.user-role-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #aaa;
}

.btn-upload {
    width: 100%;
    padding: 12px;
    background: #28a745;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-upload:hover {
    background: #218838;
}

.flash-messages {
    margin-top: 20px;
}

.flash-msg {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.flash-msg.success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.flash-msg.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

/* Admin Tables & Lists */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-header h1 {
    margin: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-link {
    color: #aaa;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #fff;
}

.btn-primary {
    background: #4a90e2;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #357abd;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
}

.data-table th, .data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
    font-weight: 600;
    color: #aaa;
    font-size: 0.9rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon-small {
    color: #4a90e2;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: inline-block;
}

.status-done {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.status-processing {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.btn-icon {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 5px;
    font-size: 1rem;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: #fff;
}

.btn-icon.delete:hover {
    color: #dc3545;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-danger-glass {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-danger-glass:hover {
    background: rgba(220, 53, 69, 0.3);
    border-color: #ff6b6b;
    color: white;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.2);
}

/* Analytics Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.color-blue { color: #4a90e2; }
.color-green { color: #28a745; }
.color-purple { color: #9b59b6; }
.color-orange { color: #e67e22; }

.stat-info h3 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #aaa;
    font-weight: normal;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 2px;
}

.stat-desc {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.analytics-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.chart-panel, .info-panel {
    padding: 20px;
}

.mock-chart-bar {
    margin-top: 20px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.bar-label {
    width: 80px;
    font-size: 0.9rem;
    color: #aaa;
}

.bar-track {
    flex-grow: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #4a90e2;
    border-radius: 4px;
}

.bar-val {
    width: 50px;
    text-align: right;
    font-weight: bold;
}

.file-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-details-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
}

.file-details-list li:last-child {
    border-bottom: none;
}

.no-notes {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

.note-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px;
    color: white;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.note-form textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.btn-save-note {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-save-note:hover {
    background: #357abd;
}

/* Toggle Status Button */
.btn-toggle-status {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-toggle-status.active {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.btn-toggle-status.inactive {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.btn-toggle-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.btn-toggle-status:active {
    transform: translateY(0);
}

/* Template Controls */
.template-controls {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 15px;
}

.template-select {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.3s;
}

.template-select:focus {
    outline: none;
    border-color: #4a90e2;
}

.template-select option {
    background-color: #2d3436;
    color: white;
    padding: 10px;
}

.btn-template {
    padding: 0 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    min-width: 40px;
}

.btn-template-add {
    background: #28a745;
}

.btn-template-add:hover {
    background: #218838;
}

.btn-template-delete {
    background: #dc3545;
}

.btn-template-delete:hover {
    background: #c82333;
}

/* Snowflakes */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: #fff;
    user-select: none;
    pointer-events: none;
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
    z-index: 9999;
    will-change: transform;
}


/* Luck Game */
.luck-modal-content {
    background: linear-gradient(135deg, #2d3436, #000);
    border: 2px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    text-align: center;
}

.slot-machine {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    padding: 20px;
    background: #333;
    border-radius: 10px;
    border: 4px solid #c0392b;
}

.reel {
    width: 80px;
    height: 100px;
    background: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 2px solid #999;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.spin-btn {
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
    color: white;
    font-size: 1.2rem;
    padding: 10px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 0 #96281b;
    transition: all 0.1s;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 10px;
}

.spin-btn:active {
    transform: translateY(5px);
    box-shadow: none;
}

.spin-btn:disabled {
    background: #7f8c8d;
    box-shadow: none;
    cursor: not-allowed;
}

.win-message {
    color: #ffd700;
    font-size: 1.5rem;
    margin-top: 15px;
    min-height: 1.5em;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
