/* ==========================================================================
   0. Variables & Dark Mode Support
   ========================================================================== */
:root {
    --bg-color: #f4f7f9;
    --container-bg: #ffffff;
    --text-primary: #1c1e21;
    --text-secondary: #4a5568;
    --border-color: #e2e8f0;
    --header-bg-start: #002337;
    --header-bg-end: #003a5c;
    --card-shadow: 0 10px 25px rgba(0,0,0,0.05);
    --input-bg: #ffffff;
    --input-focus: #004a99;
    --table-header-bg: #f8fafc;
    --link-color: #004a99;
    --status-ok: #48bb78;
    --status-error: #f56565;
    --status-warning: #ed8936;
    --login-bg: linear-gradient(135deg, #f4f7f9 0%, #e2e8f0 100%);
    --card-bg-hover: #f8fafc;
    --modal-overlay: rgba(0,0,0,0.5);
    --badge-bg: #edf2f7;
    --badge-text: #718096;
    --group-badge-bg: #e9d8fd;
    --group-badge-text: #6b46c1;
    --btn-add-bg: #ebf4ff;
}

.dark-mode {
    --bg-color: #0f172a;
    --container-bg: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --header-bg-start: #1e293b;
    --header-bg-end: #1e293b;
    --card-shadow: 0 10px 25px rgba(0,0,0,0.3);
    --input-bg: #0f172a;
    --input-focus: #3b82f6;
    --table-header-bg: #334155;
    --link-color: #60a5fa;
    --status-ok: #4ade80;
    --status-error: #fb7185;
    --status-warning: #fbbf24;
    --login-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --card-bg-hover: #2d3748;
    --modal-overlay: rgba(0,0,0,0.7);
    --badge-bg: #334155;
    --badge-text: #94a3b8;
    --group-badge-bg: #44337a;
    --group-badge-text: #d6bcfa;
    --btn-add-bg: rgba(0, 74, 153, 0.2);
}

/* 
   Zentrales Stylesheet für den Admin-Bereich.
*/

* { 
    box-sizing: border-box; 
}

body { 
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif; 
    background: var(--bg-color); 
    margin: 0; 
    color: var(--text-primary); 
    line-height: 1.5; 
    transition: background-color 0.3s, color 0.3s;
}

/* Haupt-Container */
.container { 
    background: var(--container-bg); 
    padding: 30px; 
    border-radius: 12px; 
    box-shadow: var(--card-shadow); 
    margin: 20px auto;
}

/* ==========================================================================
   Basis Form-Elemente (Inputs, Selects, Buttons)
   ========================================================================== */

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--input-bg);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.2s ease-in-out;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(0, 74, 153, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Admin Area
   ========================================================================== */

/* ==========================================================================
   Admin Area
   ========================================================================== */

/* Dark Mode Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    margin-left: 10px;
    outline: none;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.dark-mode .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }

.dark-mode .theme-toggle .sun { display: block; }
.dark-mode .theme-toggle .moon { display: none; }

.admin-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: calc(100vh - 100px);
    background: var(--login-bg);
}

.admin-login-box {
    width: 100%;
    max-width: 400px;
    background: var(--container-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.admin-login-box h2 {
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-primary);
    font-weight: 700;
}

.admin-login-box .form-group {
    margin-bottom: 25px;
}

.admin-login-box label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.admin-login-box .btn-login {
    width: 100%;
    padding: 14px;
    background: #003a5c;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-login-box .btn-login:hover {
    background: #002337;
}

.admin-login-box .login-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 0.9em;
    font-weight: 500;
}

.admin-login-box .login-info {
    background: #e8f5e9;
    color: #166534;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 0.9em;
    font-weight: 500;
}

/* ==========================================================================
   Admin-Bereich & Detail-Seiten
   ========================================================================== */

.details-page { 
    padding: 20px; 
}
@media (max-width: 991px) {
    .details-page { padding: 10px; }
}

.details-page .container { 
    margin: 10px auto 0 auto; 
    max-width: 100%; 
}
@media (max-width: 991px) {
    .details-page .container { padding: 15px 10px; margin: 0; max-width: 100%; border-radius: 12px; }
}

/* ==========================================================================
   API Dokumentation
   ========================================================================== */

.api-docs { margin-top: 20px; }
.api-docs-wrapper { display: flex; gap: 30px; align-items: flex-start; }
.api-nav { 
    width: 250px; 
    flex-shrink: 0; 
    position: sticky; 
    top: 30px; /* Wegen Admin Header */
    background: var(--container-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    padding: 20px;
    box-shadow: var(--card-shadow);
    z-index: 10;
}
.api-nav-title { 
    font-weight: bold; 
    color: var(--link-color); 
    margin-bottom: 15px; 
    padding-bottom: 10px; 
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1em;
}
.api-nav ul { list-style: none; padding: 0; margin: 0; }
.api-nav li { margin-bottom: 12px; }
.api-nav a { 
    text-decoration: none; 
    color: var(--text-secondary); 
    font-size: 0.95em;
    transition: color 0.2s;
    display: block;
}
.api-nav a:hover { color: #007bff; }
.api-content { flex-grow: 1; min-width: 0; }

@media (max-width: 991px) {
    .api-docs-wrapper { flex-direction: column; }
    .api-nav { width: 100%; position: static; margin-bottom: 20px; }
}

.api-group-title { 
    margin: 0 0 20px 0; 
    padding-bottom: 10px; 
    border-bottom: 2px solid var(--link-color); 
    color: var(--link-color); 
    font-size: 1.5em;
}
.api-group-section { margin-bottom: 60px; }
.api-endpoint { 
    background: var(--container-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    margin-bottom: 20px; 
    padding: 15px;
    box-shadow: var(--card-shadow);
}
.api-method { 
    display: inline-block; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-weight: bold; 
    font-size: 12px;
    color: #fff;
    margin-right: 10px;
    min-width: 60px;
    text-align: center;
}
.method-get { background: #2ea44f; }
.method-post { background: #007bff; }
.api-path { font-family: monospace; font-weight: bold; font-size: 1.1em; color: var(--text-primary); }
.api-desc { margin: 10px 0; color: var(--text-secondary); line-height: 1.5; }
.api-params { margin: 10px 0; }
.api-params table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
.api-params th { text-align: left; background: var(--table-header-bg); padding: 8px; border-bottom: 2px solid var(--border-color); }
.api-params td { padding: 8px; border-bottom: 1px solid var(--border-color); }
.api-params .param-name { font-family: monospace; font-weight: bold; color: #d73a49; }
.api-params .param-type { color: var(--text-secondary); font-style: italic; font-size: 0.85em; }
.api-example { 
    background: var(--bg-color); 
    padding: 10px; 
    border-radius: 4px; 
    font-size: 0.9em; 
    border: 1px solid var(--border-color);
}
.api-example label { font-weight: bold; display: block; margin-bottom: 5px; color: #666; font-size: 0.85em; }
.api-example a { color: #0366d6; text-decoration: none; word-break: break-all; }
.api-example a:hover { text-decoration: underline; }



/* Admin Layout */
.admin-layout {
    min-height: 100vh;
    padding: 20px;
}
@media (max-width: 991px) {
    .admin-layout { padding: 10px; }
}

.admin-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 0 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-icon, .btn-logout-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--container-bg);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.nav-icon:hover, .btn-logout-icon:hover {
    background: var(--card-bg-hover);
    color: var(--link-color);
    border-color: var(--border-color);
    transform: translateY(-1px);
}

.btn-logout-icon:hover {
    color: #e53e3e;
    border-color: #feb2b2;
}

.nav-icon.active {
    background: #004a99;
    color: #fff;
    border-color: #004a99;
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.2);
}

.admin-view-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.admin-view-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.back-link { 
    text-decoration: none; 
    color: #1a73e8;
    font-size: 0.9em; 
    font-weight: bold; 
    transition: color 0.2s;
}

.back-link:hover { 
    color: #1557b0; 
    text-decoration: underline; 
}

/* Dashboard */
.admin-dashboard-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.admin-dashboard-header h2 {
    margin-top: 0;
    color: var(--text-primary);
}

.btn-logout {
    display: inline-block;
    padding: 8px 16px;
    background: #e53e3e;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: #c53030;
    color: #fff;
}

.admin-button {
    background-color: #6c757d;
}

.admin-button:hover {
    background-color: #5a6268;
}

/* ==========================================================================
   Admin Area - Components
   ========================================================================== */

.system-health-summary {
    margin: 20px 0 30px 0;
}

.health-overview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-radius: 12px;
    border-left: 6px solid #ccc;
    background: var(--container-bg);
    box-shadow: var(--card-shadow);
}

.health-overview.status-ok { border-left-color: #48bb78; }
.health-overview.status-warning { border-left-color: #ed8936; }
.health-overview.status-error { border-left-color: #f56565; }

.health-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.health-icon {
    font-size: 1.5em;
    font-weight: bold;
}

.status-ok .health-icon { color: #48bb78; }
.status-warning .health-icon { color: #ed8936; }
.status-error .health-icon { color: #f56565; }

.health-info strong {
    display: block;
    font-size: 1.1em;
}

.health-details {
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-top: 4px;
}

.health-actions {
    text-align: right;
    color: var(--text-secondary);
}

.admin-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.admin-stat-card {
    text-decoration: none;
    color: inherit;
    background: var(--container-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
    border-color: var(--link-color);
}

.admin-stat-card .stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--link-color);
    background: var(--bg-color);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.admin-stat-card h3 {
    margin: 10px 0 5px 0;
    font-size: 1.25rem;
}

.admin-stat-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* User Table */
.admin-table-container {
    overflow-x: auto;
    background: var(--container-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--table-header-bg);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.admin-table tr:hover {
    background: var(--card-bg-hover);
}

/* Sections List & Rows */
.sections-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.section-row {
    background: var(--container-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
    user-select: none;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.drag-handle:active, .check-drag-handle:active {
    cursor: grabbing;
}

.section-row.dragging {
    opacity: 0.5;
    background: #f8fafc;
    border-style: dashed;
}

.check-row.dragging {
    opacity: 0.5;
    background: #f0f4f8;
    border: 1px dashed #004a99;
}

.section-row.drag-over::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #004a99;
    border-radius: 4px;
    z-index: 10;
}

.check-row.drag-over-check::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #007bff;
    border-radius: 4px;
    z-index: 10;
}

.checks-list.drag-over-list {
    background: rgba(0, 123, 255, 0.02);
    border-radius: 8px;
}

.section-row:hover {
    box-shadow: var(--card-shadow);
}

.drag-handle, .check-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    cursor: grab;
    padding: 5px;
    transition: color 0.2s;
}

.check-drag-handle {
    padding: 0 10px 0 0;
}

.drag-handle:hover, .check-drag-handle:hover {
    color: #4a5568;
}

.section-main {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Checks List within Section */
.checks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 30px;
}

.check-row {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-left: 6px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px 12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.2s;
    position: relative;
}

.check-row.ok { border-left-color: #48bb78; }
.check-row.error, .check-row.critical { border-left-color: #f56565; }
.check-row.warning, .check-row.degraded { border-left-color: #ed8936; }

.check-row:hover {
    background: var(--container-bg);
    border-color: var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.check-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1;
}

.check-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.check-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.check-type-badge {
    background: var(--badge-bg);
    color: var(--badge-text);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.check-group-badge {
    background: var(--group-badge-bg);
    color: var(--group-badge-text);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
}

.check-actions {
    display: flex;
    gap: 6px;
    align-self: flex-start;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
}

.check-row:hover .check-actions {
    opacity: 1;
    visibility: visible;
}

.btn-add-check {
    background: var(--btn-add-bg);
    color: var(--link-color);
    border: 1px dashed var(--link-color);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-check:hover {
    background: #004a99;
    color: #fff;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--modal-overlay);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-overlay.at-top {
    align-items: flex-start;
    padding-top: 20px;
}

.modal-overlay.at-bottom {
    align-items: flex-end;
    padding-bottom: 20px;
}

.modal-content {
    background: var(--container-bg);
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    box-shadow: var(--card-shadow);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.modal-large {
    max-width: 95%;
    width: 1200px;
    height: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
}

.modal-content.modal-large form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.modal-content.modal-large .modal-step {
    flex: 1;
    overflow-y: auto;
}

.modal-content.modal-large #step-2-content {
    min-height: 200px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.modal-header h3 { 
    margin: 0; 
    font-size: 1.25rem;
    color: var(--text-primary);
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s;
}

.btn-close:hover {
    background: var(--card-bg-hover);
    color: var(--text-primary);
}

.no-data, .loading {
    text-align: center;
    padding: 40px;
    background: var(--bg-color);
    border-radius: 12px;
    color: var(--text-secondary);
    border: 2px dashed var(--border-color);
}

.mt-20 { margin-top: 20px; }

.btn-primary {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-edit-small {
    background: var(--bg-color);
    color: var(--link-color);
    border: 1px solid var(--link-color);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit-small:hover {
    background: #007bff;
    color: #fff;
}

.btn-setup-small {
    background: rgba(245, 124, 0, 0.1);
    color: #f57c00;
    border: 1px solid #f57c00;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-setup-small:hover {
    background: #f57c00;
    color: #fff;
}

.btn-delete-small {
    background: rgba(197, 48, 48, 0.1);
    color: #c53030;
    border: 1px solid rgba(197, 48, 48, 0.3);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-delete-small:hover {
    background: #c53030;
    color: #fff;
}

/* Admin Forms */
.admin-form-card {
    background: var(--container-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.admin-form-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.admin-form-inline {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.admin-form-inline .form-group {
    flex: 1;
    min-width: 200px;
}

.btn-add-user {
    background: #004a99;
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    height: 42px;
}

.btn-add-user:hover {
    background: #003a7a;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: -10px;
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group-full {
    grid-column: 1 / -1;
}

.btn-save-settings {
    background: #004a99;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-save-settings:hover {
    background: #003a7a;
}

.btn-test-mail {
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-test-mail:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Password Toggle */
.password-toggle-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle-wrapper input {
    padding-right: 42px;
}

.password-toggle-btn {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.password-toggle-btn:hover {
    color: var(--text-primary);
    background-color: var(--card-bg-hover);
}

.password-toggle-btn svg {
    width: 20px;
    height: 20px;
}
