
/* =================================
   SUBSCRIPTION TRACKER CSS LIBRARY
   ================================= */

/* 1. General Layout */

/* 0. Global Website Styling */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f6fa;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
}

.card {
    background-color: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.section {
    margin-top: 25px;
}

/* 2. Header */

.page-header {
    margin-bottom: 25px;
}

.page-header h1 {
    margin-bottom: 8px;
}

/* 3. Grid Layouts */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

/* 4. Summary Cards */

.summary-card h2 {
    font-size: 16px;
    color: #666;
}

.summary-number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 0;
}

/* 5. Form Elements */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

input, select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

label {
    font-weight: 600;
}

/* 6. Buttons */

.button {
    padding: 11px 18px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
}

.button-primary {
    background-color: #3157d5;
    color: white;
}

.button-danger {
    background-color: #dc3545;
    color: white;
}

.button:hover {
    opacity: 0.85;
}

/* 7. Table */

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

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

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

.table th {
    background-color: #f5f6fa;
}

/* 8. Status Badges */

.badge {
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.badge-active {
    background-color: #d9f5e3;
    color: #16753b;
}

.badge-expired {
    background-color: #ffe0e0;
    color: #b42323;
}

/* 9. Empty State */

.empty-state {
    text-align: center;
    color: #777;
    padding: 25px;
}

/* 10. Responsive Design */

@media (max-width: 650px) {
    .summary-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .container {
        width: 95%;
    }
}
