﻿:root {
    --brand: #3b6ea5;
    --brand-light: #e7f0fa;
    --brand-dark: #2f5c8a;
    --bg: #f4f7fa;
    --card: #ffffff;
    --border: #e5e8eb;
    --text: #1c1f23;
    --text-light: #6c757d;
}

body {
    margin: 0;
    background: var(--bg);
    font-family: 'Inter', sans-serif;
}

/* LAYOUT */
.layout {
    display: grid;
    grid-template-columns: 250px auto;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    background: var(--brand-dark);
    padding: 20px 0;
    color: white;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 40px;
    font-size: 20px;
    font-weight: 600;
}

    .sidebar-logo img {
        width: 50px;
        display: block;
        margin: 0 auto 10px;
    }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item {
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.85;
}

    .nav-item:hover,
    .nav-item.active {
        background: var(--brand);
        opacity: 1;
    }

/* TOP BAR */
.topbar {
    background: var(--card);
    padding: 18px 25px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-title {
    font-size: 22px;
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout {
    background: var(--brand);
    padding: 6px 12px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
}

/* CONTENT */
.content {
    padding: 25px;
}

/* CARD */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

/* FORMS */
form div {
    margin-bottom: 14px;
}

input, select {
    width: 300px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid var(--border);
}

button {
    background: var(--brand);
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
}

/* TABLES */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    background: var(--brand-light);
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

tr:hover {
    background: #f9fafb;
}
.card h2 {
    margin-top: 0;
    font-size: 22px;
}

.filters {
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
}

    .filters input,
    .filters select {
        padding: 8px;
        border-radius: 5px;
        border: 1px solid var(--border);
    }

.table-premium {
    width: 100%;
    border-collapse: collapse;
}

    .table-premium th,
    .table-premium td {
        padding: 12px;
        border-bottom: 1px solid var(--border);
    }

    .table-premium th {
        background: var(--brand-light);
    }

.tag {
    display: inline-block;
    background: var(--brand-light);
    color: var(--brand-dark);
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 4px;
}

.status {
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    color: white;
}

.status-1 {
    background: #2ecc71;
}
/* Live */
.status-2 {
    background: #f39c12;
}
/* Renewal */
.status-3 {
    background: #c0392b;
}
/* On Hold */
.status-4 {
    background: #8e44ad;
}
/* No ping */
.status-5 {
    background: #7f8c8d;
}
/* Cancelled */

.edit-btn {
    text-decoration: none;
    font-size: 20px;
}
.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.btn-primary {
    background: var(--brand);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

    .btn-primary:hover {
        background: var(--brand-dark);
    }

.details-btn {
    margin-left: 10px;
    font-size: 18px;
    text-decoration: none;
}

.filters input,
.filters select {
    width: 200px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 18px 32px;
}

.form-row {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

    .form-row label {
        margin-bottom: 4px;
        color: var(--text-light);
    }

    .form-row input,
    .form-row select {
        width: 80%;
    }

    .form-row.full-width {
        grid-column: 1 / -1;
    }

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

    .checkbox-group label {
        font-size: 13px;
    }

.form-actions {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 13px;
}

    .btn-secondary:hover {
        border-color: var(--brand);
        color: var(--brand);
    }

.required {
    color: #c0392b;
}
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.tab {
    padding: 12px 18px;
    text-decoration: none;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: .2s;
}

    .tab:hover {
        color: var(--brand-dark);
    }

    .tab.active {
        color: var(--brand);
        font-weight: 600;
        border-color: var(--brand);
    }

.tab-content {
    padding-top: 5px;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    gap: 18px 30px;
}

    .info-grid .full {
        grid-column: 1 / -1;
    }

    .info-grid label {
        font-size: 13px;
        color: var(--text-light);
    }

    .info-grid .value {
        font-size: 15px;
        font-weight: 500;
        color: var(--text);
        padding-top: 3px;
    }

.btn-small {
    background: var(--brand);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
}

    .btn-small:hover {
        background: var(--brand-dark);
    }

