/**
 * ReHeat - Main Stylesheet
 */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #95C3B1;
    --primary-dark: #7AB09D;
    --secondary-color: #2196F3;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --success-color: #95C3B1;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.1);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

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

a:hover {
    text-decoration: underline;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 20px 0;
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo {
    max-width: 120px;
    height: auto;
    display: block;
}

.site-logo:hover {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.logo a {
    color: var(--primary-color);
    text-decoration: none;
}

.tagline {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== Main Content ===== */
.main {
    min-height: calc(100vh - 200px);
    padding-bottom: 40px;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 40px 20px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Packages Grid ===== */
.packages {
    margin: 60px 0;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.package-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.package-badge {
    position: absolute;
    top: -10px;
    right: 20px;
}

.badge-best {
    background: var(--danger-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.package-header {
    text-align: center;
    margin-bottom: 25px;
}

.package-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.package-price {
    margin: 15px 0;
}

.price-main {
    display: block;
    font-size: 42px;
    font-weight: bold;
    color: var(--primary-color);
}

.price-per {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}

.package-features {
    list-style: none;
    margin: 20px 0;
}

.package-features li {
    padding: 8px 0;
    color: var(--text-color);
}

.package-footer {
    margin-top: 25px;
}

/* ===== Locations ===== */
.locations {
    margin: 60px 0;
    text-align: center;
}

.locations h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.location-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.location-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.location-address {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* ===== Info Section ===== */
.info {
    margin: 60px 0;
    text-align: center;
}

.info h2 {
    font-size: 28px;
    margin-bottom: 40px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.step {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.step p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s ease, transform 0.1s ease;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

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

.btn-secondary:hover {
    background: #1976D2;
}

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

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
    width: 100%;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.btn-back {
    display: inline-block;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
}

.btn-back:hover {
    color: var(--primary-color);
}

/* ===== Checkout Page ===== */
.checkout-container {
    max-width: 1000px;
    margin: 0 auto;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.checkout-header h2 {
    font-size: 32px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.checkout-form {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.checkout-summary {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.summary-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.summary-card h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.summary-label {
    color: var(--text-light);
}

.summary-value {
    font-weight: 500;
}

.summary-divider {
    border-top: 2px solid var(--border-color);
    margin: 15px 0;
}

.summary-total {
    font-size: 20px;
    font-weight: bold;
}

.summary-total .summary-value {
    color: var(--primary-color);
}

.summary-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.summary-info ul {
    list-style: none;
    margin-top: 10px;
}

.summary-info li {
    padding: 5px 0;
    font-size: 14px;
}

/* ===== Forms ===== */
.form-section {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-section legend {
    font-size: 18px;
    font-weight: bold;
    padding: 0 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-actions {
    margin-top: 30px;
}

/* ===== Alerts ===== */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* ===== Thank You Page ===== */
.thank-you-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    margin-bottom: 30px;
}

.thank-you-container h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.order-confirmation-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    text-align: left;
    margin-bottom: 30px;
}

.order-confirmation-card h2 {
    text-align: center;
    margin-bottom: 30px;
}

.confirmation-details {
    margin: 20px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-label {
    color: var(--text-light);
}

.detail-value {
    font-weight: 500;
}

.detail-divider {
    border-top: 2px solid var(--border-color);
    margin: 15px 0;
}

.confirmation-info {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 6px;
}

.confirmation-info h3 {
    margin-bottom: 15px;
}

.confirmation-info ul {
    list-style: none;
    text-align: left;
}

.confirmation-info li {
    padding: 8px 0;
}

.thank-you-actions {
    margin: 30px 0;
}

.contact-info {
    margin-top: 30px;
    color: var(--text-light);
}

/* ===== Admin Styles ===== */
.admin-body {
    background: var(--bg-light);
}

/* Admin Login */
.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-login-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.admin-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-login-header h1 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.login-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
}

.admin-login-form {
    margin: 20px 0;
}

.admin-login-footer {
    text-align: center;
    margin-top: 20px;
}

/* Admin Navigation */
.admin-nav {
    background: var(--white);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.admin-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-nav-brand a {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    padding: 20px 0;
    display: block;
}

.admin-brand-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.admin-logo {
    height: 40px;
    width: auto;
}

.admin-label {
    font-size: 18px;
    color: var(--text-color);
    font-weight: 500;
}

.admin-nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.admin-nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    padding: 20px 0;
    display: block;
    transition: color 0.3s ease;
}

.admin-nav-menu a:hover,
.admin-nav-menu a.active {
    color: var(--primary-color);
}

/* Admin Container */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 32px;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stat-card h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Cards */
.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.card h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Filters */
.filters-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.filters-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

/* Tables */
.table-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
}

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

.data-table thead {
    background: var(--bg-light);
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr:hover {
    background: var(--bg-light);
}

.past-slot {
    opacity: 0.6;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.badge-paid,
.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-failed {
    background: #f8d7da;
    color: #721c24;
}

.badge-secondary {
    background: #e9ecef;
    color: #6c757d;
}

/* Status Select */
.status-select {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.inline-form {
    display: inline;
}

/* Utility Classes */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.text-danger {
    color: var(--danger-color);
}

.text-success {
    color: var(--success-color);
}

/* ===== Footer ===== */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.footer p {
    margin: 5px 0;
}

.footer-credit {
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.8;
}

.footer-credit a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .site-logo {
        max-width: 100px;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .admin-nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-nav-menu {
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 10px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .table-responsive {
        font-size: 14px;
    }

    .data-table th,
    .data-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .site-logo {
        max-width: 90px;
    }

    .login-logo {
        max-width: 150px;
    }

    .admin-logo {
        height: 30px;
    }

    .tagline {
        font-size: 12px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .package-card {
        padding: 20px;
    }

    .price-main {
        font-size: 36px;
    }

    .checkout-header h2 {
        font-size: 24px;
    }

    .thank-you-container h1 {
        font-size: 28px;
    }
}



