* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #e5e5e5;
    --sidebar-bg: rgba(20, 20, 20, 0.3);
    --sidebar-hover: rgba(40, 40, 40, 0.4);
    --sidebar-active: rgba(50, 50, 50, 0.5);
    --text-color: #ffffff;
    --text-light: #b3b3b3;
    --text-white: #ffffff;
    --bg-color: #000000;
    --bg-light: #1a1a1a;
    --bg-dark: #000000;
    --bg-card-dark: rgba(30, 30, 30, 0.25);
    --bg-overlay: rgba(20, 20, 20, 0.3);
    --border-color: rgba(255, 255, 255, 0.1);
    --green: #10b981;
    --green-dark: #059669;
    --purple: #8b5cf6;
    --purple-dark: #7c3aed;
    --blue: #3b82f6;
    --blue-dark: #2563eb;
    --red: #ef4444;
    --red-dark: #dc2626;
    --grey-dark: rgba(40, 40, 40, 0.3);
    --grey-button: rgba(30, 30, 30, 0.4);
    --black-button: rgba(15, 15, 15, 0.4);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6), 0 4px 15px rgba(0, 0, 0, 0.4);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    background-color: var(--bg-dark);
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    background-color: var(--sidebar-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
}

/* Shooting Stars Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: -2;
}

/* Shooting Stars */
.shooting-star {
    position: fixed;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.9), 0 0 20px 5px rgba(255, 255, 255, 0.5);
    z-index: -1;
    opacity: 0;
    animation: shoot linear infinite;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.5), transparent);
    transform: translateY(-50%) translateX(-150px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), transparent);
    transform: translateY(-50%) translateX(-200px);
}

@keyframes shoot {
    0% {
        transform: translateY(-100px) translateX(-100px) rotate(45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) translateX(calc(100vw + 100px)) rotate(45deg);
        opacity: 0;
    }
}

/* Create multiple shooting stars with different paths */
.shooting-star:nth-child(1) {
    left: 10%;
    top: -100px;
    animation-duration: 3s;
    animation-delay: 0s;
}

.shooting-star:nth-child(2) {
    left: 30%;
    top: -200px;
    animation-duration: 4s;
    animation-delay: 1s;
}

.shooting-star:nth-child(3) {
    left: 50%;
    top: -150px;
    animation-duration: 3.5s;
    animation-delay: 2s;
}

.shooting-star:nth-child(4) {
    left: 70%;
    top: -250px;
    animation-duration: 4.5s;
    animation-delay: 0.5s;
}

.shooting-star:nth-child(5) {
    left: 90%;
    top: -100px;
    animation-duration: 3.2s;
    animation-delay: 1.5s;
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.8);
    z-index: 1002;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-close-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

.mobile-close-btn:hover {
    background-color: var(--sidebar-hover);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-account {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.account-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1.5rem;
    margin-bottom: 0.25rem;
}

.account-button {
    padding-left: 1.5rem;
}

.tab-button {
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: transparent;
    border: none;
    color: var(--text-white);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: inherit;
    border-left: 3px solid transparent;
}

.tab-button:hover {
    background-color: var(--sidebar-hover);
    border-left-color: var(--primary-color);
}

.tab-button.active {
    background-color: var(--sidebar-active);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.tab-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    filter: brightness(0) invert(1);
}

.tab-label {
    flex: 1;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: transparent;
    position: relative;
}

.breadcrumb-nav {
    padding: 1rem 2rem;
    background-color: var(--bg-overlay);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    position: sticky;
    top: 0;
    z-index: 11;
}

.breadcrumb-site {
    color: var(--text-white);
    font-weight: 600;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-tab {
    color: rgba(255, 255, 255, 0.8);
    text-transform: lowercase;
}

.content-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background-color: var(--bg-overlay);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 3rem;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.content-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
}

.tab-content {
    display: none;
    flex: 1;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
    background-color: transparent;
}

.tab-content.active {
    display: block;
}

/* Stats Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--bg-card-dark);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 5px 20px rgba(0, 0, 0, 0.5);
}

.stat-card-green {
    border-left: 4px solid var(--text-white);
}

.stat-card-grey {
    background-color: var(--grey-dark);
    border-left: 4px solid var(--text-white);
    backdrop-filter: blur(10px);
}

.stat-card-purple {
    border-left: 4px solid var(--text-white);
}

.stat-card-blue {
    border-left: 4px solid var(--text-white);
}

.stat-card-red {
    border-left: 4px solid var(--text-white);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon-green {
    background-color: var(--text-white);
}

.stat-icon-purple {
    background-color: var(--text-white);
}

.stat-icon-blue {
    background-color: var(--text-white);
}

.stat-icon-red {
    background-color: var(--text-white);
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.stat-label-top {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    text-align: right;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.stat-value-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.stat-reset {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

.stat-progress {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.stat-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.stat-progress-green {
    background-color: var(--green);
}

.stat-progress-purple {
    background-color: var(--purple);
}

.stat-progress-blue {
    background-color: var(--blue);
}

.stat-progress-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Project Section */
.project-section {
    background-color: var(--bg-card-dark);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-icon {
    font-size: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.project-hash {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Courier New', monospace;
}

.project-actions {
    display: flex;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-green {
    background-color: var(--black-button);
    color: var(--text-white);
}

.btn-green:hover {
    background-color: var(--grey-button);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.btn-grey {
    background-color: var(--black-button);
    color: var(--text-white);
    padding: 0.625rem;
    min-width: 40px;
}

.btn-grey:hover {
    background-color: var(--grey-button);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.btn-blue {
    background-color: var(--black-button);
    color: var(--text-white);
}

.btn-blue:hover {
    background-color: var(--grey-button);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.btn-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Table */
.table-container {
    overflow-x: auto;
}

.scripts-table {
    width: 100%;
    border-collapse: collapse;
}

.scripts-table thead {
    background-color: rgba(20, 20, 20, 0.3);
    backdrop-filter: blur(10px);
}

.scripts-table th {
    padding: 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.scripts-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    font-size: 0.875rem;
}

.scripts-table tbody tr:hover {
    background-color: rgba(40, 40, 40, 0.25);
}

.script-name-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(40, 40, 40, 0.3);
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: rgba(255, 255, 255, 0.9);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.script-icon {
    background-color: rgba(40, 40, 40, 0.3);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.script-icon-red {
    background-color: rgba(40, 40, 40, 0.3);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.script-info {
    flex: 1;
    min-width: 0;
}

.script-name {
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.script-hash {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Courier New', monospace;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-action {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.btn-action-green {
    background-color: var(--black-button);
    color: var(--text-white);
}

.btn-action-green:hover {
    background-color: var(--grey-button);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.btn-action-blue {
    background-color: var(--black-button);
    color: var(--text-white);
}

.btn-action-blue:hover {
    background-color: var(--grey-button);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.btn-action-red {
    background-color: var(--black-button);
    color: var(--text-white);
}

.btn-action-red:hover {
    background-color: var(--grey-button);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.btn-action-icon {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background-color: var(--black-button);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-action-icon:hover {
    background-color: var(--grey-button);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.btn-add-user {
    background-color: var(--black-button);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-add-user:hover {
    background-color: var(--grey-button);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.btn-edit-users {
    background-color: var(--black-button);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-edit-users:hover {
    background-color: var(--grey-button);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.create-project-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.btn-create-project {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.empty-state p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

/* Login Modal Styles */
.login-modal {
    z-index: 3000;
}

.login-modal-content {
    max-width: 500px;
    padding: 0;
    background-color: var(--bg-overlay);
    backdrop-filter: blur(15px);
}

.login-container {
    padding: 3rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    margin-top: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.login-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.625rem;
    color: var(--text-white);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.login-input:focus {
    background-color: rgba(30, 30, 30, 0.5);
    border-color: var(--text-white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    outline: none;
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.login-submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.login-error {
    padding: 0.75rem;
    background-color: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    color: #fca5a5;
    font-size: 0.875rem;
    text-align: center;
}

.profile-discord-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

/* Security Section Styles */
.security-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.security-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(20, 20, 20, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.security-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
}

.security-key-display {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

.btn-reset-key {
    background-color: var(--black-button);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-reset-key:hover {
    background-color: var(--grey-button);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--bg-overlay);
    backdrop-filter: blur(15px);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 0.75rem;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideDown 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.create-project-modal-content {
    max-width: 800px;
    padding: 0;
}

.add-user-modal-content {
    max-width: 700px;
    padding: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
}

.modal-header-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-modal {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-modal-green {
    background-color: var(--black-button);
    color: var(--text-white);
}

.btn-modal-green:hover {
    background-color: var(--grey-button);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.btn-modal-red {
    background-color: var(--black-button);
    color: var(--text-white);
}

.btn-modal-red:hover {
    background-color: var(--grey-button);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.btn-create-submit {
    margin-left: auto;
}

.modal-footer .btn-create-submit {
    margin-left: auto;
}

.close {
    color: rgba(255, 255, 255, 0.6);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.close:hover {
    color: var(--text-white);
}

.create-project-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
}

.create-project-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.create-project-form label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-description {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
    line-height: 1.4;
}

.create-project-form input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    background-color: rgba(20, 20, 20, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--text-white);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.create-project-form input[type="text"]:focus {
    background-color: rgba(30, 30, 30, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.create-project-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.create-project-form input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.toggle-group {
    margin-top: 0.5rem;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 0.25rem;
}

.toggle-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider-modal {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: rgba(40, 40, 40, 0.3);
    border-radius: 24px;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-slider-modal:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-input:checked + .toggle-slider-modal {
    background-color: rgba(255, 255, 255, 0.9);
}

.toggle-input:checked + .toggle-slider-modal:before {
    transform: translateX(20px);
}

.modal-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-file-inject {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.file-name-display {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem;
    background-color: rgba(20, 20, 20, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    min-height: 1.5rem;
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.modal-actions .btn {
    min-width: 100px;
}

/* Add User Modal Specific Styles - Legacy (kept for compatibility) */
.add-user-instruction:not(.modern-instruction) {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background-color: rgba(40, 40, 40, 0.25);
    backdrop-filter: blur(10px);
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    margin: 0 2rem 1.5rem 2rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.instruction-icon:not(.modern-instruction .instruction-icon) {
    color: var(--text-white);
    font-size: 1.25rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.add-user-instruction:not(.modern-instruction) p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.add-user-form {
    padding: 0 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Modern Modal Styles */
.modern-modal {
    max-width: 900px;
    border-radius: 1rem;
    overflow: hidden;
}

.modern-modal-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
}

.modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-instruction {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-left: 3px solid var(--blue);
    margin: 0 2rem 1.5rem 2rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.instruction-icon-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.instruction-content {
    flex: 1;
}

.instruction-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.instruction-text {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

.instruction-text code {
    background: rgba(20, 20, 20, 0.4);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.modern-form {
    padding: 0 2rem 2rem 2rem;
}

.modern-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.modern-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modern-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

.label-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.modern-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.625rem;
    color: var(--text-white);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.modern-input:focus {
    background-color: rgba(30, 30, 30, 0.5);
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.modern-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.modern-form-description {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    margin-top: 0.125rem;
}

@media (max-width: 768px) {
    .modern-form-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-modal {
        max-width: 95%;
    }
}

/* Edit File Modal Styles */
#edit-file-name:focus,
#edit-file-content:focus {
    background-color: rgba(30, 30, 30, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
    outline: none !important;
}

#edit-file-name::placeholder,
#edit-file-content::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Search and Pagination */
.search-pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-container {
    display: flex;
    gap: 0.75rem;
    flex: 1;
    min-width: 300px;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    background-color: rgba(20, 20, 20, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--text-white);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.search-input:focus {
    background-color: rgba(30, 30, 30, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    outline: none;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-search {
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 0.5rem;
    background-color: var(--black-button);
    backdrop-filter: blur(10px);
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-btn:hover {
    background-color: var(--grey-button);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.pagination-text {
    color: var(--text-white);
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

.empty-table-message {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.users-table th {
    font-size: 0.7rem;
}

.users-table td {
    font-size: 0.8rem;
}

/* Profile Tab Styles */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0;
}

.profile-left,
.profile-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-section {
    background-color: var(--bg-card-dark);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-header-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-card-dark);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-picture {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(40, 40, 40, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-email {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-white);
}

.profile-discord-id {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.profile-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.profile-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
}

.profile-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.detail-value {
    font-size: 0.875rem;
    color: var(--text-white);
    font-weight: 500;
}

.api-key-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.api-key-actions {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.profile-text-item {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    line-height: 1.6;
}

.profile-link {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.profile-link:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

.profile-membership-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.invite-code-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.invite-code-input {
    flex: 1;
    padding: 0.75rem;
    background-color: rgba(20, 20, 20, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--text-white);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.invite-code-input:focus {
    background-color: rgba(30, 30, 30, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    outline: none;
}

.invite-code-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.invite-code-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-redeem {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

.invite-history-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: rgba(40, 40, 40, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.invite-plan-icon {
    font-size: 1.25rem;
}

.invite-date {
    color: rgba(255, 255, 255, 0.6);
    min-width: 100px;
}

.invite-text {
    flex: 1;
}

.whitelist-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.whitelist-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.btn-whitelist {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.whitelist-table {
    width: 100%;
    border-collapse: collapse;
}

.whitelist-table thead {
    background-color: rgba(20, 20, 20, 0.3);
    backdrop-filter: blur(10px);
}

.whitelist-table th {
    padding: 0.75rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.whitelist-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    font-size: 0.875rem;
}

.auto-save-section {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.auto-save-stretched {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.auto-save-stretched .auto-save-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.auto-save-card {
    background-color: var(--bg-card-dark);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.auto-save-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.auto-save-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.auto-save-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
}

.auto-save-status {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    background-color: rgba(16, 185, 129, 0.2);
    border-radius: 0.375rem;
    display: inline-block;
    width: fit-content;
}

.auto-save-status.disabled {
    background-color: rgba(239, 68, 68, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

.auto-save-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.auto-save-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.info-label {
    color: rgba(255, 255, 255, 0.6);
}

.info-value {
    color: var(--text-white);
    font-weight: 500;
}

.auto-save-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.auto-save-stretched .auto-save-content {
    align-items: center;
    text-align: center;
}

.auto-save-stretched .auto-save-actions {
    justify-content: center;
    width: 100%;
}

.btn-manual-backup,
.btn-toggle-auto-save {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

/* Responsive Profile */
@media (max-width: 1024px) {
    .profile-container {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Styles */
.dashboard-stat-card {
    margin-bottom: 2rem;
}

.stat-card-full-width {
    width: 100%;
    max-width: none;
}

.dashboard-graph-section {
    background-color: var(--bg-card-dark);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.graph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.graph-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
}

.graph-filters {
    display: flex;
    gap: 0.5rem;
}

.graph-filter-btn {
    padding: 0.5rem 1rem;
    background-color: var(--black-button);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.graph-filter-btn:hover {
    background-color: var(--grey-button);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.graph-filter-btn.active {
    background-color: var(--grey-button);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.graph-container {
    width: 100%;
    height: 500px;
    background-color: rgba(20, 20, 20, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 0.5rem;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.graph-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graph-svg {
    width: 100%;
    height: 100%;
}

.graph-zero-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .graph-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .graph-container {
        height: 400px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .tab-button {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .tab-icon {
        font-size: 1.1rem;
    }

    .breadcrumb-nav {
        padding: 0.75rem 1.5rem;
        font-size: 0.75rem;
    }

    .content-header {
        padding: 1.5rem;
        top: 2.5rem;
    }

    .content-header h1 {
        font-size: 1.5rem;
    }

    .tab-content {
        padding: 1.5rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .create-project-modal-content {
        max-width: 95%;
        margin: 2% auto;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .create-project-form {
        padding: 1.5rem;
    }

    .modal-footer {
        flex-wrap: wrap;
    }

    .file-name-display {
        width: 100%;
        order: 3;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-actions {
        width: 100%;
    }

    .btn-add-script {
        flex: 1;
    }

    .scripts-table {
        font-size: 0.75rem;
    }

    .script-name-cell {
        flex-wrap: wrap;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-action {
        width: 100%;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background-color: var(--sidebar-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    background-color: var(--sidebar-hover);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    /* Removed backdrop-filter blur - it was causing the blur effect */
    pointer-events: auto;
}

.mobile-overlay.active {
    display: block;
}

/* Make sure sidebar is always above overlay and not blurred */
@media (max-width: 768px) {
    .sidebar {
        z-index: 1003;
        /* Ensure sidebar content is not affected by any blur */
        backdrop-filter: none;
    }
    
    .mobile-overlay {
        z-index: 1001;
        /* No blur on overlay - just dark background */
        backdrop-filter: none;
    }
    
    /* Make overlay not cover the sidebar when it's open - overlay starts after sidebar */
    .mobile-overlay.active {
        left: 250px;
        width: calc(100% - 250px);
    }
    
    /* Make sure sidebar content is clear */
    .sidebar * {
        backdrop-filter: none !important;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .app-container {
        position: relative;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        height: 100vh;
        width: 250px;
        transition: left 0.3s ease;
        z-index: 1003;
        box-shadow: 2px 0 30px rgba(0, 0, 0, 0.9);
        /* Remove blur on mobile for clarity */
        backdrop-filter: none !important;
        background-color: rgba(20, 20, 20, 0.98) !important;
        /* Make sidebar scrollable on mobile */
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .sidebar.mobile-open {
        left: 0;
    }
    
    /* Make sure tab buttons are clickable and above overlay */
    .sidebar .tab-button {
        position: relative;
        z-index: 1004;
        pointer-events: auto;
        /* Ensure buttons are clickable */
        touch-action: manipulation;
    }
    
    /* Ensure all sidebar content is clear and not blurred */
    .sidebar * {
        backdrop-filter: none !important;
    }
    
    /* Make sure sidebar account section is visible and scrollable */
    .sidebar-account {
        margin-top: auto;
        padding-bottom: 2rem;
    }
    
    .sidebar.mobile-open {
        left: 0;
    }

    .mobile-close-btn {
        display: block;
    }

    .sidebar.mobile-open {
        left: 0;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }

    .breadcrumb-nav {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
        margin-top: 3.5rem;
    }

    .content-header {
        padding: 1rem;
        top: 3.5rem;
    }

    .content-header h1 {
        font-size: 1.5rem;
    }

    .tab-content {
        padding: 1rem;
        margin-top: 1rem;
    }

    /* Stats Grid - Stack on mobile */
    .stats-container,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Tables - Make scrollable */
    .table-container,
    .users-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .users-table,
    .scripts-table {
        min-width: 800px;
        font-size: 0.75rem;
    }

    .users-table th,
    .users-table td,
    .scripts-table th,
    .scripts-table td {
        padding: 0.5rem;
        white-space: nowrap;
    }

    /* Project Cards */
    .project-card {
        padding: 1rem !important;
    }

    .project-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .project-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .project-actions .btn {
        flex: 1;
        min-width: 120px;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .users-header,
    .projects-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .users-header .btn,
    .projects-header .btn {
        width: 100%;
    }

    /* Search and Pagination */
    .search-pagination-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .search-container {
        width: 100%;
        min-width: 0;
    }

    .pagination-info {
        justify-content: space-between;
        width: 100%;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 2% auto;
        max-height: 95vh;
        overflow-y: auto;
    }

    .create-project-modal-content,
    .add-user-modal-content {
        max-width: 95%;
        margin: 2% auto;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .create-project-form,
    .add-user-form {
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .modal-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    .modal-footer .btn {
        width: 100%;
    }

    /* Profile Layout */
    .profile-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .profile-left,
    .profile-right {
        width: 100%;
    }

    .profile-section {
        margin-bottom: 1.5rem;
    }

    /* Dashboard Graph */
    .dashboard-graph-section {
        margin-top: 1.5rem;
    }

    .graph-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .graph-filters {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .graph-filter-btn {
        flex: 1;
        min-width: 60px;
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    /* Login Modal */
    .login-modal-content {
        width: 90%;
        max-width: 400px;
        margin: 10% auto;
    }

    .login-container {
        padding: 1.5rem;
    }

    /* Backup Section */
    .backup-section {
        margin-top: 1.5rem;
    }

    .backup-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .backup-actions .btn {
        width: 100%;
    }

    /* Auto-save Section */
    .auto-save-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .auto-save-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .mobile-menu-toggle {
        top: 0.75rem;
        left: 0.75rem;
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .sidebar {
        width: 280px;
        left: -280px;
    }

    .breadcrumb-nav {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
        margin-top: 3rem;
    }

    .content-header {
        padding: 0.75rem;
        top: 2.5rem;
    }

    .content-header h1 {
        font-size: 1.25rem;
    }

    .tab-content {
        padding: 0.75rem;
    }

    /* Smaller buttons */
    .btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }

    /* Tables - Even smaller */
    .users-table,
    .scripts-table {
        font-size: 0.7rem;
        min-width: 700px;
    }

    .users-table th,
    .users-table td,
    .scripts-table th,
    .scripts-table td {
        padding: 0.375rem;
    }

    /* Modals - Full screen on very small devices */
    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .create-project-modal-content,
    .add-user-modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-header {
        padding: 0.75rem;
        position: sticky;
        top: 0;
        background-color: var(--bg-card-dark);
        backdrop-filter: blur(10px);
        z-index: 10;
    }

    .create-project-form,
    .add-user-form {
        padding: 0.75rem;
    }

    /* Profile adjustments */
    .profile-header-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-picture {
        margin-bottom: 1rem;
    }

    /* Stats cards - Smaller */
    .stat-card {
        padding: 1rem;
    }

    .stat-value-large {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    /* Project cards - Compact */
    .project-card > div:first-child {
        flex-direction: column;
        gap: 0.75rem;
    }

    .project-card .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Custom Site Editor Styles */
.custom-site-container {
    padding: 2rem;
}

.custom-site-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.custom-site-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.custom-site-info p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.custom-site-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.custom-site-editor-wrapper {
    background: var(--bg-overlay);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.editor-label {
    color: var(--text-white);
    font-weight: 600;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.custom-site-editor {
    width: 100%;
    min-height: 500px;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: var(--text-white);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}

.custom-site-editor:focus {
    background: rgba(0, 0, 0, 0.4);
}

.custom-site-editor::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.custom-site-help {
    background: var(--bg-overlay);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-site-help h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.custom-site-help ul {
    list-style: none;
    padding: 0;
}

.custom-site-help li {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.custom-site-help li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}
