/* ============================================================
   Shared Page Container
   ============================================================ */

.page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* ============================================================
   Shared Premium Indicator
   ============================================================ */

.premium-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    background: #7c3aed;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    white-space: nowrap;
    vertical-align: middle;
}

.premium-badge--heading {
    margin-left: 10px;
    font-size: 0.55em;
}

.premium-badge--plan {
    margin-bottom: 10px;
}


/* ============================================================
   Shared Navigation Component
   ============================================================ */

.site-navbar .navbar-brand {
    font-weight: 600;
}

.site-navbar .navbar-nav {
    gap: 0.25rem;
}

.site-navbar .nav-link {
    border-radius: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.site-navbar .nav-link:hover {
    background: #f8f9fa;
}

.site-navbar .nav-link:focus-visible,
.site-navbar .navbar-brand:focus-visible {
    outline: 2px solid #258cfb;
    outline-offset: 2px;
}

.site-navbar .dropdown-menu {
    margin-top: 0.5rem;
}

@media (max-width: 575.98px) {
    .site-navbar .navbar-nav {
        align-items: stretch;
    }

    .site-navbar .nav-link {
        width: 100%;
    }

    .site-navbar .nav-item.ms-lg-2 {
        margin-left: 0 !important;
        margin-top: 0.25rem;
    }

    .site-navbar .nav-item.ms-lg-2 .btn {
        width: 100%;
    }
}
/* ============================================================
   Shared Card Component
   ============================================================ */

.ui-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* =========================
   HOME PAGE
   ========================= */

.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.hero-description {
    max-width: 700px;
    margin: 0 auto 35px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.btn:hover {
    opacity: 0.85;
}

.btn-primary {
    background-color: #9146ff;
    color: white;
}

.btn-secondary {
    border: 1px solid #9146ff;
    color: #9146ff;
}

.home-section {
    padding: 80px 20px;
}

.section-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.section-content h2 {
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.section-description {
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.feature-card {
    padding: 30px;
    border: 1px solid rgba(128, 128, 128, 0.25);
    border-radius: 10px;
    text-align: left;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
}

.feature-card p {
    line-height: 1.6;
}

.getting-started {
    text-align: center;
}

.getting-started p {
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

@media (max-width: 768px) {

    .hero h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================
   FEATURES PAGE
   ========================= */

.features-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-hero {
    padding: 100px 20px 80px;
    text-align: center;
}

.features-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.features-hero p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.7;
}

.feature-section {
    padding: 80px 0;
}

.feature-section-alt {
    background-color: rgba(128, 128, 128, 0.06);
}

.feature-section-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 45px;
}

.large-feature-icon {
    font-size: 3.5rem;
    flex-shrink: 0;
}

.feature-section-header h2 {
    margin-bottom: 10px;
    font-size: 2.25rem;
}

.feature-section-header p {
    margin: 0;
    line-height: 1.6;
}

.feature-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feature-detail-card {
    padding: 30px;
    border: 1px solid rgba(128, 128, 128, 0.25);
}

.feature-detail-card h3 {
    margin-bottom: 15px;
}

.feature-detail-card p {
    margin: 0;
    line-height: 1.7;
}

.features-cta {
    padding: 100px 20px;
    text-align: center;
}

.features-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.features-cta p {
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.7;
}


/* =========================
   FEATURES RESPONSIVE
   ========================= */

@media (max-width: 768px) {

    .features-hero h1 {
        font-size: 2.75rem;
    }

    .feature-section-header {
        align-items: flex-start;
    }

    .feature-detail-grid {
        grid-template-columns: 1fr;
    }

    .large-feature-icon {
        font-size: 2.75rem;
    }

}

/* =========================
   PRICING PAGE
   ========================= */

.pricing-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.pricing-hero {
    padding: 100px 20px 80px;
    text-align: center;
}

.pricing-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.pricing-hero p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.7;
}

.pricing-section {
    padding: 80px 0;
}

.pricing-section-alt {
    background-color: rgba(128, 128, 128, 0.06);
}

.pricing-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 45px;
    border: 1px solid rgba(128, 128, 128, 0.25);

    text-align: center;
}

.pricing-card-header {
    margin-bottom: 25px;
}

.pricing-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.pricing-card h2 {
    font-size: 2rem;
}

.pricing-message {
    line-height: 1.7;
    margin-bottom: 15px;
}

.pricing-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px 16px;
    border-radius: 6px;
    background-color: rgba(128, 128, 128, 0.1);
    font-size: 0.95rem;
}

.status-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: currentColor;
}

.pricing-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.pricing-section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 15px;
}

.pricing-section-header p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.pricing-benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.pricing-benefit-card {
    padding: 30px;
    border: 1px solid rgba(128, 128, 128, 0.25);
}

.pricing-benefit-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.pricing-benefit-card h3 {
    margin-bottom: 12px;
}

.pricing-benefit-card p {
    margin: 0;
    line-height: 1.7;
}

.pricing-info {
    text-align: center;
}

.pricing-info h2 {
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.pricing-info p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.pricing-cta {
    padding: 100px 20px;
    text-align: center;
}

.pricing-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.pricing-cta p {
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.pricing-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}


/* =========================
   PRICING RESPONSIVE
   ========================= */

@media (max-width: 768px) {

    .pricing-hero h1 {
        font-size: 2.75rem;
    }

    .pricing-benefit-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 30px 20px;
    }

}

/* =========================
   DOCUMENTATION PAGE
   ========================= */

.documentation-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

.documentation-hero {
    padding: 100px 20px 80px;
    text-align: center;
}

.documentation-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.documentation-hero p {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.7;
}

.documentation-section {
    padding: 60px 0 100px;
}

.documentation-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 60px;
    align-items: start;
}

.documentation-sidebar {
    position: sticky;
    top: 30px;
    padding: 25px;
    border: 1px solid rgba(128, 128, 128, 0.25);
    border-radius: 10px;
}

.documentation-sidebar h3 {
    margin-bottom: 20px;
}

.documentation-sidebar a {
    display: block;
    margin-bottom: 14px;
    text-decoration: none;
}

.documentation-sidebar a:hover {
    text-decoration: underline;
}

.documentation-content {
    max-width: 800px;
}

.documentation-topic {
    margin-bottom: 75px;
    scroll-margin-top: 30px;
}

.documentation-topic h2 {
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.documentation-topic h3 {
    font-size: 1.35rem;
    margin-top: 30px;
    margin-bottom: 12px;
}

.documentation-topic p {
    line-height: 1.8;
}

.documentation-topic li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.documentation-code {
    display: inline-block;
    margin: 10px 0 15px;
    padding: 10px 15px;
    border-radius: 6px;
    background-color: rgba(128, 128, 128, 0.12);
    font-family: Consolas, monospace;
}

.documentation-cta {
    padding: 100px 20px;
    text-align: center;
    background-color: rgba(128, 128, 128, 0.06);
}

.documentation-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.documentation-cta p {
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.documentation-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}


/* =========================
   DOCUMENTATION RESPONSIVE
   ========================= */

@media (max-width: 800px) {

    .documentation-hero h1 {
        font-size: 2.75rem;
    }

    .documentation-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .documentation-sidebar {
        position: static;
    }

}

/* =========================
   DOCUMENTATION TABLE
   ========================= */

.documentation-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 25px 0 35px;
}

.documentation-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

.documentation-table th,
.documentation-table td {
    padding: 14px 16px;
    text-align: left;
    border: 1px solid rgba(128, 128, 128, 0.25);
    vertical-align: top;
}

.documentation-table th {
    font-weight: 600;
    background-color: rgba(128, 128, 128, 0.08);
}

.documentation-table code {
    font-family: Consolas, monospace;
}

/* =========================
   FAQ PAGE
   ========================= */

.faq-page {
    width: 100%;
}

.faq-container {
    width: min(1100px, 90%);
    margin: 0 auto;
}


/* =========================
   FAQ HERO
   ========================= */

.faq-hero {
    padding: 80px 0 60px;
    text-align: center;
}

.faq-hero h1 {
    margin-bottom: 20px;
}

.faq-hero p {
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}


/* =========================
   FAQ CONTENT
   ========================= */

.faq-section {
    padding: 30px 0 80px;
}

.faq-category {
    margin-bottom: 55px;
}

.faq-category h2 {
    margin-bottom: 20px;
}


/* =========================
   FAQ ITEM
   ========================= */

.faq-item {
    margin-bottom: 12px;
    border: 1px solid rgba(128, 128, 128, 0.25);
    border-radius: 8px;
    overflow: hidden;
}

.faq-item summary {
    position: relative;
    padding: 18px 50px 18px 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item summary:hover {
    opacity: 0.8;
}

.faq-answer {
    padding: 0 20px 20px;
    line-height: 1.7;
}

.faq-answer p {
    margin-bottom: 15px;
}

.faq-answer ul,
.faq-answer ol {
    margin-bottom: 15px;
}

.faq-answer li {
    margin-bottom: 8px;
}


/* =========================
   FAQ CODE
   ========================= */

.faq-code {
    margin: 15px 0;
    padding: 14px 16px;
    border-radius: 6px;
    background-color: rgba(128, 128, 128, 0.1);
    font-family: Consolas, "Courier New", monospace;
    overflow-x: auto;
}


/* =========================
   FAQ BUTTONS
   ========================= */

.faq-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}


/* =========================
   FAQ CTA
   ========================= */

.faq-cta {
    padding: 70px 0;
    text-align: center;
}

.faq-cta p {
    max-width: 650px;
    margin: 0 auto 25px;
}

.faq-cta .faq-buttons {
    justify-content: center;
}


/* =========================
   RESPONSIVE FAQ
   ========================= */

@media (max-width: 768px) {

    .faq-hero {
        padding: 60px 0 40px;
    }

    .faq-category {
        margin-bottom: 40px;
    }

    .faq-item summary {
        padding: 16px 45px 16px 16px;
    }

    .faq-answer {
        padding: 0 16px 18px;
    }

}

/* =========================
   CONTACT PAGE
   ========================= */

.contact-page {
    width: 100%;
}

.contact-container {
    width: min(1100px, 90%);
    margin: 0 auto;
}


/* =========================
   CONTACT HERO
   ========================= */

.contact-hero {
    padding: 80px 0 60px;
    text-align: center;
}

.contact-hero h1 {
    margin-bottom: 20px;
}

.contact-hero p {
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}


/* =========================
   CONTACT CONTENT
   ========================= */

.contact-section {
    padding: 30px 0 80px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: start;
}


/* =========================
   CONTACT INFORMATION
   ========================= */

.contact-information h2,
.contact-form-container h2 {
    margin-bottom: 20px;
}

.contact-information p {
    line-height: 1.7;
    margin-bottom: 18px;
}


/* =========================
   CONTACT LINKS
   ========================= */

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border: 1px solid rgba(128, 128, 128, 0.25);
    border-radius: 8px;
    text-decoration: none;
}

.contact-link strong {
    font-size: 1rem;
}

.contact-link span {
    line-height: 1.5;
    opacity: 0.8;
}

.contact-link:hover {
    opacity: 0.8;
}


/* =========================
   CONTACT FORM
   ========================= */

.contact-form-container {
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form-group label {
    font-weight: 600;
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 6px;
    background: transparent;
    font: inherit;
    box-sizing: border-box;
}

.contact-form-group textarea {
    resize: vertical;
    min-height: 160px;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: none;
}

.contact-submit {
    align-self: flex-start;
    margin-top: 5px;
}


/* =========================
   CONTACT CTA
   ========================= */

.contact-cta {
    padding: 70px 0;
    text-align: center;
}

.contact-cta p {
    max-width: 650px;
    margin: 0 auto 25px;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}


/* =========================
   RESPONSIVE CONTACT
   ========================= */

@media (max-width: 768px) {

    .contact-hero {
        padding: 60px 0 40px;
    }

    .contact-section {
        padding: 20px 0 60px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contact-submit {
        width: 100%;
    }

}


/* ============================================================
   DASHBOARD
   ============================================================ */

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    margin: 0;
}


.dashboard-section {
    margin-bottom: 3rem;
}


.dashboard-section h2 {
    margin-bottom: 0.5rem;
}

/* Dashboard server cards */
.dashboard-page .server-card {
    min-width: 380px;
}

.dashboard-page .dashboard-server-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.dashboard-page .dashboard-server-actions .btn {
    width: auto;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .dashboard-page .server-card {
        min-width: 0;
    }

    .dashboard-page .dashboard-server-actions {
        flex-direction: column;
        width: 100%;
    }

    .dashboard-page .dashboard-server-actions .btn {
        width: 100%;
    }
}

.dashboard-empty {
    padding: 48px 24px;
    margin-top: 24px;
    text-align: center;
    border: 1px dashed #ccc;
    border-radius: 8px;
}

.dashboard-empty h3 {
    margin-bottom: 12px;
}

.dashboard-empty p {
    margin-bottom: 8px;
}

.dashboard-error {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    margin-bottom: 24px;
    padding: 18px 20px;
    border: 1px solid #dc3545;
    border-radius: 8px;
    background-color: #fff5f5;
    color: #842029;
}

.dashboard-error-icon {
    flex: 0 0 auto;
    font-size: 1.25rem;
    line-height: 1.5;
}

.dashboard-error-content {
    flex: 1;
}

.dashboard-error-content h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
}

.dashboard-error-content p {
    margin: 0;
}

/* ============================================================
   SERVER GRID
   ============================================================ */

.server-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(280px, 1fr)
    );

    gap: 1.5rem;
    margin-top: 1.5rem;
}


.server-card {
    display: flex;
    align-items: center;
    gap: 1rem;

    padding: 1.5rem;
}


.server-icon,
.server-icon-placeholder {
    width: 64px;
    height: 64px;

    flex-shrink: 0;

    border-radius: 50%;
}


.server-icon {
    object-fit: cover;
}


.server-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #eee;

    font-size: 1.75rem;
}


.server-card-content {
    flex: 1;
}


.server-card-content h3 {
    margin: 0 0 0.25rem;
}


.server-card-content p {
    margin: 0 0 1rem;

    color: #666;
}


/* ============================================================
   SERVER MANAGEMENT HEADER
   ============================================================ */

.dashboard-back {
    display: inline-block;
    margin-bottom: 1.5rem;

    text-decoration: none;
}


.server-management-header {
    display: flex;
    align-items: center;

    gap: 1rem;
}


.server-management-icon,
.server-management-icon-placeholder {
    width: 80px;
    height: 80px;

    flex-shrink: 0;

    border-radius: 50%;
}


.server-management-icon {
    object-fit: cover;
}


.server-management-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #eee;

    font-size: 2rem;
}


/* ============================================================
   MANAGEMENT CARDS
   ============================================================ */

.management-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px, 1fr)
        );

    gap: 1.5rem;

    margin-top: 1.5rem;
}


.management-icon {
    font-size: 2rem;

    margin-bottom: 1rem;
}


.management-card h3 {
    margin-bottom: 0.75rem;
}


.management-card p {
    min-height: 72px;

    color: #666;
}


/* ============================================================
   SERVER INFORMATION
   ============================================================ */

.server-information dl {
    max-width: 700px;

    padding: 1.5rem;

    border: 1px solid #ddd;
    border-radius: 12px;

    background: #fff;
}


.server-information dt {
    font-weight: 600;

    margin-top: 1rem;
}


.server-information dt:first-child {
    margin-top: 0;
}


.server-information dd {
    margin-left: 0;

    margin-top: 0.25rem;

    color: #666;
}


/* ============================================================
   SERVER MANAGEMENT
   ============================================================ */

.dashboard-server-page {
    padding: 30px 0 60px;
}


/* ============================================================
   SERVER HEADER
   ============================================================ */

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    margin-bottom: 45px;
    padding-bottom: 30px;

    border-bottom: 1px solid #ddd;
}

.server-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.server-header-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #777;
    margin-bottom: 5px;
}

.server-header h1 {
    margin: 0;
    font-size: 2.4rem;
}

.server-header p {
    margin: 8px 0 0;
    color: #666;
}


/* ============================================================
   SERVER ICON
   ============================================================ */

.server-icon {
    width: 90px;
    height: 90px;

    border-radius: 50%;

    object-fit: cover;
}

.server-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #6f42c1;
    color: white;

    font-size: 2rem;
    font-weight: 700;
}


/* ============================================================
   MANAGEMENT SECTION
   ============================================================ */

.management-section {
    margin-bottom: 50px;
}

.management-section h2 {
    margin-bottom: 8px;
}

.section-description {
    color: #666;
    margin-bottom: 25px;
}


/* Keep management section descriptions
   aligned with their headings. */

.management-section .section-header > .section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}


/* ============================================================
   MANAGEMENT GRID
   ============================================================ */

.management-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


/* ============================================================
   MANAGEMENT CARD
   ============================================================ */

.management-card {
    display: flex;

    gap: 20px;

    padding: 25px;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.management-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.08);
}

.management-icon {
    flex-shrink: 0;

    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #f1ecff;

    font-size: 1.7rem;
}

.management-card-content {
    flex: 1;
}

.management-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.management-card p {
    color: #666;

    margin-bottom: 20px;

    line-height: 1.5;
}


/* ============================================================
   SERVER INFORMATION
   ============================================================ */

.server-information {
    margin-top: 20px;
}

.server-information h2 {
    margin-bottom: 15px;
}

.server-information-card {
    border: 1px solid #ddd;
    border-radius: 10px;

    background: #fff;

    overflow: hidden;
}

.server-information-row {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 15px 20px;

    border-bottom: 1px solid #eee;
}

.server-information-row:last-child {
    border-bottom: none;
}

.server-information-label {
    font-weight: 600;
    color: #555;
}

.status-badge {
    display: inline-block;

    padding: 5px 12px;

    border-radius: 20px;

    background: #e8f5e9;

    color: #2e7d32;

    font-size: 0.85rem;
    font-weight: 600;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {

    .server-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .management-grid {
        grid-template-columns: 1fr;
    }

    .server-header h1 {
        font-size: 2rem;
    }

    .server-information-row {
        flex-direction: column;
        align-items: flex-start;
    }

}


/* ============================================================
   DISCORD SERVER CARDS
   ============================================================ */

.server-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(380px, 1fr)
    );

    gap: 24px;
    margin-top: 24px;

    align-items: start;
}


.server-card {
    width: 100%;
    box-sizing: border-box;

    padding: 24px;

    text-align: center;

    display: flex;
    justify-content: center;
}


.server-card-content {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
}


.server-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 16px;
}


.server-icon,
.server-icon-placeholder {
    width: 90px;
    height: 90px;

    border-radius: 50%;

    flex-shrink: 0;
}


.server-icon {
    object-fit: cover;
}


.server-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #eee;

    font-size: 2rem;
}


.server-information {
    width: 100%;

    text-align: center;

    margin-bottom: 20px;
}


.server-information h3 {
    margin: 0 0 6px;

    font-size: 1.5rem;

    overflow-wrap: anywhere;
}


.server-information p {
    margin: 0;

    color: #666;
}


.server-actions {
    display: flex;
    justify-content: center;
    width: 100%;
}


.server-actions .btn {
    white-space: nowrap;
}

.dashboard-server-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    width: 100%;
}

.dashboard-server-actions .btn {
    width: auto;
    white-space: nowrap;
    flex: 0 0 auto;
}


@media (max-width: 600px) {

    .server-grid {
        grid-template-columns: 1fr;
    }

    .server-card {
        max-width: 340px;
    }

}


/* ============================================================
   STREAMER MANAGEMENT
   ============================================================ */

.streamer-add-card {
    padding: 25px;

    margin-bottom: 35px;
}

.streamer-add-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.streamer-add-card p {
    margin-bottom: 20px;
    color: #666;
}


.streamer-add-form {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}


.streamer-input-group {
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 8px;
}


.streamer-input-group label {
    font-weight: 600;
}


.streamer-input-group input {
    width: 100%;

    box-sizing: border-box;

    padding: 12px 14px;

    border: 1px solid #ccc;
    border-radius: 6px;

    font: inherit;
}


.streamer-input-group input:focus {
    outline: none;

    border-color: #9146ff;

    box-shadow:
        0 0 0 2px rgba(145, 70, 255, 0.15);
}


/* ============================================================
   DASHBOARD SETTINGS
   ============================================================ */

.dashboard-settings-section {
    margin-top: 2rem;
}

.dashboard-settings-form {
    width: 100%;
}

.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 20px 25px;
}

.setting-information {
    flex: 1;
    min-width: 0;
}

.setting-information h3 {
    margin: 0 0 6px;

    font-size: 1rem;
    font-weight: 600;
}

.setting-information p {
    margin: 0;

    color: #666;

    font-size: 0.9rem;
    line-height: 1.5;
}

.setting-control {
    flex-shrink: 0;
    width: 200px;
}

.dashboard-settings-section .form-select {
    width: 100%;
    box-sizing: border-box;

    padding: 10px 12px;

    border: 1px solid #ccc;
    border-radius: 6px;

    background: #fff;
    color: #222;

    font: inherit;

    cursor: pointer;
}

.dashboard-settings-section .form-select:focus {
    outline: none;

    border-color: #9146ff;

    box-shadow:
        0 0 0 2px rgba(145, 70, 255, 0.15);
}

.settings-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 20px;
}


/* ============================================================
   DASHBOARD SETTING TOGGLES
   ============================================================ */

.toggle-switch {
    position: relative;

    display: inline-block;

    width: 52px;
    height: 28px;

    flex-shrink: 0;
}

.toggle-switch input {
    width: 0;
    height: 0;

    opacity: 0;
}

.toggle-slider {
    position: absolute;

    inset: 0;

    cursor: pointer;

    border-radius: 999px;

    background: #6b7280;

    transition: 0.2s ease;
}

.toggle-slider::before {
    content: "";

    position: absolute;

    width: 22px;
    height: 22px;

    left: 3px;
    top: 3px;

    border-radius: 50%;

    background: #fff;

    transition: 0.2s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: #9146ff;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}


/* ============================================================
   DASHBOARD SETTINGS RESPONSIVE
   ============================================================ */

@media (max-width: 700px) {

    .setting-item {
        align-items: flex-start;
        flex-direction: column;

        gap: 15px;
    }

    .setting-control {
        width: 100%;
    }

    .setting-item .toggle-switch {
        align-self: flex-end;
    }

    .settings-actions {
        justify-content: stretch;
    }

    .settings-actions .btn {
        width: 100%;
    }
}


/* ============================================================
   STREAMER LIST
   ============================================================ */

.streamer-list-section h3 {
    margin-bottom: 15px;
}


.streamer-list {
    border: 1px solid #ddd;
    border-radius: 12px;

    background: #fff;

    overflow: hidden;
}


.streamer-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        auto;

    align-items: center;

    gap: 20px;

    padding: 18px 20px;

    border-bottom: 1px solid #eee;
}


.streamer-row:last-child {
    border-bottom: none;
}


.streamer-information {
    min-width: 0;
}


.streamer-information h4 {
    margin: 0 0 5px;

    font-size: 1.15rem;

    overflow-wrap: anywhere;
}


.streamer-information p {
    margin: 0;

    color: #666;
}


.streamer-status {
    display: flex;

    align-items: center;
}


.streamer-actions {
    display: flex;

    justify-content: flex-end;
}


.btn-danger {
    border: 1px solid #dc3545;

    background: #dc3545;

    color: white;
}


.btn-danger:hover {
    opacity: 0.85;
}


/* ============================================================
   EMPTY STREAMER STATE
   ============================================================ */

.streamer-empty-state {
    padding: 30px;

    border: 1px solid #ddd;
    border-radius: 12px;

    background: #fff;

    text-align: center;
}


.streamer-empty-state p {
    margin: 0;

    color: #666;
}


/* ============================================================
   STREAMER RESPONSIVE
   ============================================================ */

@media (max-width: 700px) {

    .streamer-add-form {
        flex-direction: column;
        align-items: stretch;
    }

    .streamer-add-form .btn {
        width: 100%;
    }

    .streamer-row {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .streamer-status {
        justify-content: flex-start;
    }

    .streamer-actions {
        justify-content: flex-start;
    }

}


/* ============================================================
   STREAMER ALERTS
   ============================================================ */

.alert {
    padding: 12px 16px;
    margin-bottom: 20px;

    border-radius: 6px;

    font-weight: 500;
}

.alert-success {
    background: #e8f5e9;
    border: 1px solid #b7dfb9;
    color: #1b5e20;
}

.alert-danger {
    background: #fdecea;
    border: 1px solid #f5b7b1;
    color: #8a1c13;
}

.alert-warning {
    background: #fff8e1;
    border: 1px solid #f0d98a;
    color: #6b5600;
}


.server-configuration-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f9fa;
    overflow-x: auto;
}

.server-config-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

.server-config-nav-link:hover {
    background: #e9ecef;
}

.server-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.overview-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.overview-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .server-overview-grid {
        grid-template-columns: 1fr;
    }

    .server-configuration-navigation {
        justify-content: flex-start;
    }
}

#streamers .streamer-add-card {
    margin-bottom: 32px;
}

#streamers .streamer-list-section {
    margin-top: 24px;
}

.dashboard-settings-groups {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-settings-group {
    padding: 20px;
}

.dashboard-settings-group-header {
    margin-bottom: 20px;
}

.dashboard-settings-group-header h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.dashboard-settings-group-header p {
    margin: 0;
    color: #6c757d;
}

.dashboard-settings-group .settings-grid {
    margin: 0;
}

.notification-messages-group {
    margin-top: 30px;
}

.feedback-message {
    width: 100%;
}

.feedback-error {
    width: 100%;
}