/* =========================
   GLOBAL
========================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
}

a {
    text-decoration: none;
}

/* =========================
   LAYOUT
========================= */
.layout {
    display: flex;
    min-height: 100vh;
}

.content {
    flex: 1;
    padding: 25px;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
    width: 240px;
    background: #1e1e2f;
    color: #fff;
    padding: 20px;
}

.sidebar h2 {
    font-size: 18px;
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    color: #fff;
    padding: 10px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.sidebar a:hover,
.sidebar a.active {
    background: #2d2d44;
}

.sidebar hr {
    border-color: #444;
    margin: 15px 0;
}

/* =========================
   TOPBAR
========================= */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* =========================
   TABLES
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

th {
    background: #fafafa;
    font-size: 13px;
    text-transform: uppercase;
    color: #555;
}

tr:hover {
    background: #f9f9f9;
}

/* =========================
   BUTTONS
========================= */
.btn {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #ccc;
    color: #333;
    background: #fff;
    cursor: pointer;
    display: inline-block;
}

.btn.primary {
    background: #1e88e5;
    color: #fff;
    border-color: #1e88e5;
}

.btn.warn {
    background: #ff9800;
    color: #fff;
    border-color: #ff9800;
}

.btn.disabled {
    background: #eee;
    color: #999;
    pointer-events: none;
}

/* =========================
   BADGES & STATUS
========================= */
.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
}

.badge.active {
    background: #4caf50;
}

.badge.disabled {
    background: #f44336;
}

.status {
    font-size: 12px;
    font-weight: bold;
}

.status.active {
    color: #4caf50;
}

.status.trial {
    color: #1e88e5;
}

.status.expired {
    color: #f44336;
}

/* =========================
   DASHBOARD / MODULE CARDS
========================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.card,
.module-card {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.price {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

.trial {
    font-size: 13px;
    color: #4caf50;
}
/* =========================
   COMPANY SWITCHER
========================= */
.company-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.company-switcher .label {
    color: #555;
    font-weight: bold;
}

.company-switcher select {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
}

