body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(120deg, #e0e7ff 0%, #f0fdfa 100%);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 48px auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(30,64,175,0.13), 0 2px 8px rgba(0,0,0,0.04);
    padding: 44px 38px 36px 38px;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.7s cubic-bezier(.4,0,.2,1);
}

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

h2 {
    text-align: center;
    color: #1e293b;
    margin-bottom: 32px;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -1px;
}

form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 22px;
    color: #334155;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    border-radius: 12px;
    background: #f8fafc;
    padding: 8px 14px 6px 14px;
    box-shadow: 0 1.5px 6px rgba(30,64,175,0.04);
    transition: background 0.2s, box-shadow 0.2s;
}

form label:focus-within {
    background: #e0e7ff;
    box-shadow: 0 2px 12px rgba(99,102,241,0.10);
}

form input[type="text"],
form input[type="password"],
form input[type="email"] {
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: 8px;
    font-size: 1.08rem;
    background: #f1f5f9;
    transition: background 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    box-shadow: 0 1.5px 4px rgba(30,64,175,0.04);
}

form input:focus {
    background: #fff;
    outline: 2px solid #6366f1;
    box-shadow: 0 0 0 3px #6366f133;
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #6366f1 0%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.18rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 18px;
    box-shadow: 0 2px 12px rgba(99,102,241,0.10);
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    letter-spacing: 0.01em;
}

button[type="submit"]:hover {
    background: linear-gradient(90deg, #2563eb 0%, #6366f1 100%);
    box-shadow: 0 6px 24px rgba(99,102,241,0.16);
    transform: translateY(-2px) scale(1.02);
}

a {
    display: block;
    text-align: center;
    margin-top: 26px;
    color: #6366f1;
    text-decoration: none;
    font-size: 1.08rem;
    font-weight: 600;
    transition: color 0.2s;
}

a:hover {
    color: #1e40af;
    text-decoration: underline;
}

.btn-action {
    display: inline-block;
    padding: 6px 16px;
    margin-right: 4px;
    background: #e0e7ff;
    color: #1e40af;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    height: 38px;
    line-height: 1.2;
    vertical-align: middle;
}

.btn-action:last-child, .btn-delete {
    margin-right: 0;
}

.btn-delete {
    all: unset;
    background: #fee2e2 !important;
    width: 25% !important;
    font-size: 14px !important;
    color: #b91c1c !important;
    height: 38px !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-delete:disabled {
    all: unset;
    background: #fca5a5;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

/* Remove all sidebar and navbar styles from layout.html and move them here for global consistency */

.sidebar {
    min-width: 220px;
    max-width: 220px;
    background: #343a40;
    color: #fff;
    min-height: 100vh;
}
.sidebar a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 12px 20px;
    font-weight: 500;
    font-size: 1.08rem;
    border-left: 4px solid transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.sidebar a.active, .sidebar a:hover {
    background: #495057;
    border-left: 4px solid #6366f1;
    color: #fff;
}
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: -1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-hover {
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px 12px;
    margin: -8px -12px;
}

.logo-hover:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.pro-text {
    color: #4285f4;
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: -1px;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}
.content {
    padding: 2rem;
}

.navbar {
    box-shadow: 0 2px 8px rgba(30,64,175,0.07);
}

.dropdown-menu {
    font-size: 1rem;
}

/* Admins Table Styles (moved from /static/style.css) */
.table-responsive { overflow-x: auto; }
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(30,64,175,0.07);
    margin-top: 24px;
    font-size: 1.04rem;
    overflow: hidden;
}
.modern-table th, .modern-table td {
    padding: 14px 18px;
    text-align: left;
}
.modern-table th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    border-bottom: 2px solid #e0e7ef;
}
.modern-table tr:not(:last-child) td {
    border-bottom: 1px solid #e0e7ef;
}
.modern-table tr:hover {
    background: #f0f6ff;
}
.btn-create {
    display: inline-block;
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 10px 22px;
    background: linear-gradient(90deg, #6366f1 0%, #2563eb 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.08rem;
    transition: background 0.2s;
}
.btn-create:hover {
    background: linear-gradient(90deg, #2563eb 0%, #6366f1 100%);
}
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 600;
}
.badge-active {
    background: #d1fae5;
    color: #047857;
}
.badge-inactive {
    background: #fee2e2;
    color: #b91c1c;
}


/* Responsive sidebar for smaller screens */
@media (max-width: 900px) {
    .sidebar {
        min-width: 100px;
        max-width: 100px;
        font-size: 0.95rem;
    }
    .sidebar a {
        padding: 10px 10px;
        font-size: 1rem;
    }
}

/* Highlight table rows on hover for the logs table */
.log tbody tr:hover td,
.modern-table tbody tr:hover td {
    background-color: #f5f5f5 !important;
    cursor: pointer;
}

/* Fullscreen modal styles */
.modal-fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    margin: 0;
}

.modal-fullscreen .modal-content {
    height: 100vh;
    border: 0;
    border-radius: 0;
}

.modal-fullscreen .modal-body {
    overflow: hidden;
}

/* Fullscreen editor button styles */
#fullscreen-editor-btn {
    margin-bottom: 10px;
    font-size: 0.85rem;
    padding: 4px 12px;
}

#fullscreen-editor-btn:hover {
    background-color: #3b82f6;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* Save and Stay button styling */
.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
}

/* Modal button styling */
.modal-footer .btn {
    margin-left: 8px;
}

/* CodeMirror fullscreen styling */
#fullscreen-code-editor .CodeMirror {
    height: 100% !important;
    font-size: 14px;
    line-height: 1.5;
}

/* Ensure proper spacing for code editor label and button */
.form-label + #fullscreen-editor-btn {
    clear: both;
    margin-top: -35px;
    margin-bottom: 10px;
}
