/* Admin CMS Custom Dark-Glassmorphism CSS Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #0a0a0c;
    --bg-card: rgba(22, 22, 26, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a0ab;
    --color-teal: #00a699;
    --color-orange: #fbb040;
    --color-red: #ea4335;
    
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Glass Surface Utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    z-index: 100;
    border-right: 1px solid var(--border-color);
    background: rgba(10, 10, 12, 0.95);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    padding-left: 0.5rem;
}

.sidebar-logo img {
    height: 45px;
    filter: brightness(0) invert(1);
}

.sidebar-logo span {
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: var(--color-teal);
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-menu a:hover,
.sidebar-menu li.active a {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--color-teal);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
}

/* Main Dashboard Panel */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: 3rem;
    min-height: 100vh;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.page-title h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.page-title p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.4rem;
}

/* Interactive Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.admin-card {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.admin-card h3 {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.admin-card .value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Premium Form Elements */
.admin-form {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.admin-input,
.admin-textarea,
.admin-select {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.admin-input:focus,
.admin-textarea:focus,
.admin-select:focus {
    border-color: var(--color-teal);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 15px rgba(0, 166, 153, 0.15);
}

.admin-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Glowing Dynamic Buttons */
.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-teal {
    background: var(--color-teal);
    color: var(--text-primary);
}

.btn-teal:hover {
    background: #00887d;
    box-shadow: 0 0 20px rgba(0, 166, 153, 0.4);
    transform: translateY(-2px);
}

.btn-red {
    background: var(--color-red);
    color: var(--text-primary);
}

.btn-red:hover {
    background: #c53023;
    box-shadow: 0 0 20px rgba(234, 67, 53, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--text-primary);
}

/* Premium High-Contrast Tables */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 1.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    padding: 1.2rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    background: rgba(0,0,0,0.2);
}

.admin-table td {
    padding: 1.2rem 1.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-teal {
    background: rgba(0, 166, 153, 0.15);
    color: var(--color-teal);
}

.badge-orange {
    background: rgba(251, 176, 64, 0.15);
    color: var(--color-orange);
}

/* Login Page Styling */
.login-wrapper {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark);
}

.login-box {
    width: 450px;
    padding: 3.5rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header img {
    height: 50px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.login-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Inbox inquiry view */
.inquiry-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 1rem;
}

.inquiry-message {
    white-space: pre-line;
    line-height: 1.8;
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
