﻿/* site.css — refactored to contain only global & shared component styles */

/* Base typography / viewport sizing */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Focus outlines */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Document baseline */
html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    min-height: 100vh; /* keep min-height but not display:flex */
}

/* Design tokens (global) */
:root {
    --primary: #ff416c;
    --primary-alt: #ff7b34;
    --primary-gradient: linear-gradient(135deg, #ff416c, #ff7b34);
    --bg: #f4f5fb;
    --sidebar-bg: #111827;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-soft: #dcdee4;
    --card-bg: #ffffff;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.08);
    --transition-fast: 0.18s ease-in-out;
}

.border-soft{
    border-radius: 10px;
    border: 1px solid var(--border-soft);
}
/* Reset / box-sizing */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body defaults and font */
body {
    font-family: "Poppins", sans-serif;
    background: var(--bg);
    color: var(--text-main);
}

/* Buttons — global/shared button styles */
.btn {
    outline: none;
    cursor: pointer;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 9px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
}
.btn-sm {
    font-size: 0.7rem;
    padding: 6px 12px;
}
.start-75 {
    left: 75% !important;
}
.btn-primary {
    border: none;
    background: var(--primary-gradient);
    color: #ffffff;
}

    .btn-primary:hover {
        transform: translateY(-1px);
    }

.btn-outline-primary {
    border-color: #ff416c;
    color: #ff416c;
}

    .btn-outline-primary:hover {
        transform: translateY(-1px);
        background: var(--primary-gradient);
        color: #ffffff;
        border-color: #ff416c;
    }


.btn-outline {
    background: transparent;
    border: 1px solid var(--border-soft);
    color: var(--text-main);
}

    .btn-outline:hover {
        background: #fff;
        transform: translateY(-1px);
    }
    .btn:hover{
        text-decoration:none;
    }
.btn-text {
    background: transparent;
    color: var(--primary);
    padding-inline: 0;
    box-shadow: none;
}

/* Forms — reusable form grid & controls */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin-top: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .form-group label {
        font-size: 0.78rem;
        font-weight: 500;
        color: #4b5563;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        border-radius: 10px;
        border: 1px solid var(--border-soft);
        padding: 8px 10px;
        font-size: 0.8rem;
        outline: none;
        background: #f9fafb;
        transition: border var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: #fb7185;
            box-shadow: 0 0 0 1px rgba(251, 113, 133, 0.2);
            background: #ffffff;
        }

    .form-group textarea {
        resize: vertical;
        min-height: 72px;
        grid-column: span 2;
    }

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
    gap: 8px;
}

/* Tables — shared table styles */
.table-wrapper {
    margin-top: 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

thead {
    background: #f9fafb;
}

th,
td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

th {
    font-weight: bold;
    color: #6b7280;
}

tr:last-child td {
    border-bottom: none;
}

/* Status pills (used in payments/tables) */
.status-pill {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
    display: inline-block;
}

.status-paid {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
}

.status-overdue {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
}

/* Responsive component fallbacks */
@media (max-width: 960px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group textarea {
        grid-column: span 1;
    }
}

.form-control {
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: #f9fafb;
}
    .form-control:focus {
        outline: none;
        box-shadow: 0 6px 18px rgba(255,71,97,0.06);
        border-color: var(--primary);
    }

a {
    color: var(--bs-primary);
    text-decoration: none;
}
a:hover{
    text-decoration: underline;
}
.card  {
    box-shadow: var(--shadow-soft);
    border-radius: 10px;
    overflow: hidden;
}
    .card label {
        font-size: 0.78rem;
        font-weight: 550;
        color: #4b5563;
    }
    .card dt {
        font-size: 0.78rem;
        font-weight: 550;
        color: #4b5563;
    }
    .card dl:last-child{
        margin-bottom: 0;
    }
form .card .card-footer{
    text-align: end;
}

.card-footer{
    padding-top: 1em;
    padding-bottom: 1em;
    border-top: 1px solid var(--border-soft);
    background: none;
}
.modal label {
    font-size: 0.78rem;
    font-weight: 550;
    color: #4b5563;
}

.stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
    position: relative;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: #999;
    background: #e4e5e9;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin-top: 12px;
    font-weight: 500;
    max-width: 100px;
}

/* Individual progress bars between steps */
.step-progress-bar {
    flex: 1;
    height: 6px;
    background: #e4e5e9;
    border-radius: 3px;
    margin: 0 12px;
    position: relative;
    z-index: 2;
    transition: background 0.4s ease;
}

    .step-progress-bar.active {
        background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
    }

.step-item.step-active .step-circle {
    background: var(--primary-gradient);
    color: white;
}

.step-item.step-active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.step-item.step-completed .step-circle {
    background: var(--primary-gradient);
    color: white;
}

.step-item.step-completed .step-label {
    color: #666;
}
.action-bar a {
    margin-right: .3em;
}
.required::after {
    content: "*";
    color: #dc3545;
}
.text-ellipsized {
    text-overflow: ellipsis;
    overflow: hidden;
    text-wrap: none;
    white-space: nowrap;
}
footer a {
    color: var(--text-muted);
}