/* Mantory panel skin copied from the main website layout */
:root {
    --bg-color: #1a1a1a;
    --bg-secondary: #171717;
    --header-bg: #141414;
    --card-bg: #222222;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #333333;
    --accent-color: #1d4d38;
    --accent-hover: #266149;
    --accent-dark: #184430;
    --danger: #9c3434;
    --warning: #9a7a28;
    --success: #1d6b45;
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s ease;
    --section-1: #1c1c1c;
    --section-2: #1e1e1e;
    --section-3: #202020;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
}

header {
    background-color: #1C1C1C;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 40px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    position: relative;
    font-size: 0.95rem;
    color: var(--text-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cta-buttons .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 0;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 210, 106, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background-color: #b53f3f;
    transform: translateY(-2px);
}

.btn.mini {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.panel-main {
    width: 100%;
    min-height: 100vh;
}

.hero,
.panel-hero {
    padding: 95px 0 55px;
    width: 100%;
    position: relative;
}

.hero::before,
.panel-main::before,
.auth-shell::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><rect x="0" y="0" width="8" height="8" fill="%23151515"/><rect x="8" y="0" width="8" height="8" fill="%23191919"/><rect x="16" y="0" width="8" height="8" fill="%23151515"/><rect x="24" y="0" width="8" height="8" fill="%23191919"/><rect x="0" y="8" width="8" height="8" fill="%23191919"/><rect x="8" y="8" width="8" height="8" fill="%23151515"/><rect x="16" y="8" width="8" height="8" fill="%23191919"/><rect x="24" y="8" width="8" height="8" fill="%23151515"/><rect x="0" y="16" width="8" height="8" fill="%23151515"/><rect x="8" y="16" width="8" height="8" fill="%23191919"/><rect x="16" y="16" width="8" height="8" fill="%23151515"/><rect x="24" y="16" width="8" height="8" fill="%23191919"/><rect x="0" y="24" width="8" height="8" fill="%23191919"/><rect x="8" y="24" width="8" height="8" fill="%23151515"/><rect x="16" y="24" width="8" height="8" fill="%23191919"/><rect x="24" y="24" width="8" height="8" fill="%23151515"/></svg>');
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
}

.hero-cards {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
    margin: 0 auto;
}

.hero-card,
.card,
.auth-card {
    flex: 1;
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 28px 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.hero-card:hover,
.card:hover,
.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.hero-card.info-card {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.info-card h1,
.page-heading h1 {
    font-size: 2.35rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-color);
}

.info-card p,
.page-heading p,
.muted,
.card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-buttons,
.button-row {
    display: flex;
    gap: 15px;
    margin-top: auto;
    align-items: center;
}

.hero-card.image-card {
    overflow: hidden;
    position: relative;
    background-color: #1a1a1a;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://i.imgur.com/Q2whOCi.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}

.announcement-container {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.announcement-box {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 25px 30px;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.announcement-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.announcement-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 600;
}

.announcement-header i {
    color: var(--accent-color);
    font-size: 1.3rem;
}

.announcement-text {
    font-size: 1.3rem;
    color: var(--text-color);
    text-align: center;
    line-height: 1.5;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-text p {
    margin-bottom: 0;
    color: var(--text-color);
}

.page-heading {
    padding: 92px 40px 22px;
    width: 100%;
}

.compact-heading {
    padding-bottom: 18px;
}

.admin-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
}

.admin-heading > div:first-child {
    flex: 1;
}

.eyebrow,
.brand-mark small {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.card {
    overflow: hidden;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(29, 77, 56, 0.05);
    transition: var(--transition);
    z-index: -1;
}

.card:hover::before {
    height: 100%;
}

.wide-form,
.server-card,
.admin-layout,
.empty-state,
.admin-section,
.profile-layout,
.tab-nav {
    margin-left: 40px;
    margin-right: 40px;
}

.wide-form {
    max-width: none;
}

.admin-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 25px;
    align-items: start;
}

.admin-section {
    padding-top: 45px;
}

.section-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-heading h2 {
    font-size: 2rem;
    line-height: 1.2;
}

.stack-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-card {
    max-width: none;
}

.brand-mark {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.brand-mark span {
    font-size: 1.5rem;
    font-weight: 700;
}

label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: #1a1a1a;
    color: var(--text-color);
    font: inherit;
    transition: var(--transition);
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(29, 77, 56, 0.25);
}

.form-grid,
.spec-grid,
.credential-grid,
.resource-grid,
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.spec-grid,
.credential-grid {
    grid-template-columns: repeat(3, 1fr);
    margin: 18px 0;
}

.spec-grid div,
.credential-grid div,
.resource-item,
.notes-box,
.stat-strip span,
.quick-features span {
    background-color: rgba(0, 0, 0, 0.22);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-grid span,
.credential-grid span,
.resource-item span,
.notes-box span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.spec-grid strong,
.credential-grid strong,
.resource-item strong {
    color: var(--text-color);
    overflow-wrap: anywhere;
}

.resource-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 10px;
}

.resource-item i {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.terms-box {
    background-color: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 18px;
}

.terms-box h3 {
    margin-bottom: 10px;
}

.terms-box p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.check-row {
    align-items: center;
    flex-direction: row;
    gap: 10px;
}

.check-row input {
    width: auto;
}

.content-grid {
    grid-template-columns: repeat(3, 1fr);
    margin: 0 40px 40px;
}

.profile-layout {
    align-items: start;
    display: grid;
    gap: 25px;
    grid-template-columns: 0.8fr 1.2fr;
}

.profile-summary p {
    margin-bottom: 15px;
}

.compact-specs {
    grid-template-columns: 1fr;
    margin-bottom: 0;
}

.tab-nav {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    padding: 0;
    width: auto;
    margin-bottom: 18px;
}

.tab-nav a {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 10px 16px;
}

.tab-nav a.active,
.tab-nav a:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-color);
}

.trust-display {
    background-color: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 18px;
}

.trust-display p {
    margin: 12px 0 0;
}

.trust-grid {
    grid-template-columns: repeat(4, 1fr);
}

.content-grid .empty-state {
    grid-column: 1 / -1;
    margin: 0;
}

.muted-line {
    color: var(--text-secondary);
    display: block;
    margin-top: 12px;
}

.inline-table-form {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.service-editor {
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
}

.server-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.server-topline h2,
.detail-card h2 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.quick-features {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.quick-features.vertical {
    flex-direction: column;
    align-items: flex-start;
}

.quick-features span {
    color: var(--text-secondary);
}

.status,
.user-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 12px;
    text-transform: capitalize;
    white-space: nowrap;
}

.user-pill {
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.status-pending {
    background: rgba(154, 122, 40, 0.18);
    color: #e2c36c;
}

.status-approved {
    background: rgba(29, 107, 69, 0.24);
    color: #85dda9;
}

.status-rejected,
.status-deleted {
    background: rgba(156, 52, 52, 0.24);
    color: #f0a0a0;
}

.status-suspended {
    background: rgba(104, 104, 104, 0.28);
    color: #d6d6d6;
}

.stat-strip {
    display: flex;
    gap: 15px;
}

.stat-strip span {
    color: var(--text-secondary);
    font-weight: 600;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
}

td {
    color: var(--text-color);
}

td small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.detail-list {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px 15px;
    margin: 20px 0;
}

.detail-list dt {
    color: var(--accent-color);
    font-weight: 600;
}

.detail-list dd {
    margin: 0;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.inline-action {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
}

.notes-box {
    margin-top: 20px;
}

.notes-box p {
    margin: 0;
    color: var(--text-color);
}

.alert,
.empty-state {
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(29, 107, 69, 0.24);
    border: 1px solid rgba(29, 77, 56, 0.6);
}

.alert-danger {
    background: rgba(156, 52, 52, 0.24);
    border: 1px solid rgba(156, 52, 52, 0.5);
}

.alert-warning {
    background: rgba(154, 122, 40, 0.2);
    border: 1px solid rgba(154, 122, 40, 0.5);
}

.empty-state,
.empty-cell {
    color: var(--text-secondary);
    text-align: center;
}

.auth-shell {
    min-height: 100vh;
    padding: 110px 40px 80px;
    width: 100%;
}

.auth-shell .auth-card {
    width: 100%;
}

@media (max-width: 1024px) {
    .hero-cards,
    .admin-layout,
    .profile-layout {
        flex-direction: column;
        display: flex;
    }

    .hero-card.image-card {
        min-height: 320px;
    }

    .spec-grid,
    .credential-grid,
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container,
    nav,
    .page-heading {
        padding-left: 20px;
        padding-right: 20px;
    }

    header {
        padding: 8px 0;
    }

    .nav-links,
    .cta-buttons {
        display: none;
    }

    .panel-hero,
    .hero {
        padding-top: 88px;
    }

    .info-card h1,
    .page-heading h1 {
        font-size: 2.2rem;
        text-align: center;
    }

    .info-card p,
    .page-heading p {
        text-align: center;
    }

    .quick-features,
    .hero-buttons,
    .button-row {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
    }

    .form-grid,
    .spec-grid,
    .credential-grid,
    .resource-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .wide-form,
    .server-card,
    .admin-layout,
    .empty-state,
    .content-grid,
    .admin-section,
    .profile-layout,
    .tab-nav {
        margin-left: 20px;
        margin-right: 20px;
    }

    .admin-heading,
    .server-topline {
        align-items: stretch;
        flex-direction: column;
    }

    .detail-list {
        grid-template-columns: 1fr;
    }

    .inline-action {
        grid-template-columns: 1fr;
    }

    .tab-nav {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .hero-card,
    .card,
    .auth-card {
        padding: 25px 20px;
    }

    .info-card h1,
    .page-heading h1 {
        font-size: 2rem;
    }

    .hero-card.image-card {
        min-height: 300px;
        padding: 20px 15px;
    }

    .announcement-header {
        font-size: 1rem;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .announcement-text {
        font-size: 1.1rem;
        min-height: 80px;
    }

    .announcement-box {
        padding: 20px;
    }
}
