/* Base styles for Tailoring Management Software
 * Premium, light theme shared across all modules.
 */

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f5f6fa;
    color: #212529;
    -webkit-font-smoothing: antialiased;
}

#wrapper {
    min-height: 100vh;
}

/* Smooth global transitions */

a,
button,
.btn,
.card,
.form-control,
.form-select,
.badge,
.dropdown-menu,
.table-hover tbody tr {
    transition:
        background-color 0.18s ease-out,
        color 0.18s ease-out,
        border-color 0.18s ease-out,
        box-shadow 0.18s ease-out,
        transform 0.18s ease-out;
}

/* Top navbar */

.app-navbar {
    z-index: 1030;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

.app-navbar .navbar-brand {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.navbar-logo {
    height: 40px;
    width: auto;
    display: block;
}

.navbar-nav > li + li {
    margin-left: 0.25rem;
}

.btn-nav-pill {
    font-weight: 500;
    border-width: 1px;
    border-radius: 999px;
    padding-inline: 1.1rem;
    padding-block: 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.btn-nav-pill i {
    font-size: 0.95rem;
}

.btn-nav-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1.2rem rgba(15, 23, 42, 0.16);
}

/* Generic premium pill button utility */

.btn-pill {
    border-radius: 999px;
    padding-inline: 1.25rem;
    font-weight: 500;
}

/* Buttons – slightly modernized Bootstrap look */

.btn {
    border-radius: 999px;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #1d4ed8;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    border-color: #1e40af;
}

.btn-outline-primary {
    border-color: rgba(37, 99, 235, 0.5);
    color: #1d4ed8;
    background-color: #ffffff;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: rgba(37, 99, 235, 0.06);
    border-color: #1d4ed8;
    color: #1d4ed8;
}

.btn-outline-secondary {
    border-color: #cbd5e1;
    color: #475569;
}

.btn-outline-secondary:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

/* Cards / containers */

.card {
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.04);
}

.card:hover {
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.08);
}

.card-header {
    border-bottom-color: #edf2f7;
    background-color: #ffffff;
    font-weight: 600;
}

/* Dashboard layout (legacy simple dashboard pages) */

.dashboard-main {
    max-width: 1200px;
}

.dashboard-header h1 {
    font-weight: 600;
}

/* Premium dashboard tiles and quick links */

.dashboard-tiles .dashboard-tile,
.quick-actions .quick-action-tile {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.95rem;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 1rem 1.15rem;
    cursor: pointer;
    transition:
        transform 0.18s ease-out,
        box-shadow 0.18s ease-out,
        border-color 0.18s ease-out,
        background 0.18s ease-out;
}

.dashboard-tiles .dashboard-tile:hover,
.quick-actions .quick-action-tile:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    border-color: rgba(59, 130, 246, 0.6);
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), #ffffff 55%);
    text-decoration: none;
}

.dashboard-tile-icon,
.quick-actions .quick-action-tile i {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: radial-gradient(circle at 30% 20%, rgba(129, 140, 248, 0.55), rgba(37, 99, 235, 0.95));
    color: #ffffff;
}

.dashboard-tile-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: #0f172a;
}

.dashboard-tile-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
}

.dashboard-tiles a,
.quick-actions a {
    color: inherit;
}

.dashboard-tiles a:hover,
.quick-actions a:hover {
    text-decoration: none;
}

/* Compact summary cards on dashboard */

.stats-grid .stat-card {
    text-decoration: none;
}

.stats-grid .stat-card .stat-label {
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Today overview widget dots */

.today-overview-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
}

@media (max-width: 575.98px) {
    .dashboard-main {
        padding-inline: 1.25rem;
    }
}

/* Tables */

.table thead th {
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background-color: #f8fafc;
    border-bottom-color: #e2e8f0;
}

.table td,
.table th {
    padding: 0.8rem 0.9rem;
    vertical-align: middle;
}

.table-hover tbody tr {
    cursor: default;
}

.table-hover tbody tr:hover {
    background-color: #f1f5f9;
}

.table-rounded {
    border-radius: 12px;
    overflow: hidden;
}

/* Forms */

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

.form-control,
.form-select {
    border-radius: 10px;
    border-color: #d1d5db;
    padding: 0.55rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.form-section {
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    border: 1px solid #e5e7eb;
    margin-bottom: 1.25rem;
}

.form-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.4rem;
}

.form-section-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.9rem;
}

/* Alerts / flash messages */

.alert {
    border-radius: 12px;
    border-width: 1px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    animation: alertSlideIn 0.3s ease-out;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown menus */

.dropdown-menu {
    border-radius: 12px;
    border-color: #e2e8f0;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    transform-origin: top right;
    opacity: 0;
    transform: translateY(4px) scale(0.98);
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Order status badges – shared color language */

.badge-status {
    border-radius: 999px;
    font-size: 0.75rem;
    padding: 0.2rem 0.75rem;
    font-weight: 500;
}

.badge-status-pending {
    background-color: #e5e7eb;
    color: #4b5563;
}

.badge-status-cutting {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-status-stitching {
    background-color: #e0f2fe;
    color: #075985;
}

.badge-status-trial {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.badge-status-ready {
    background-color: #dcfce7;
    color: #166534;
}

.badge-status-delivered {
    background-color: #111827;
    color: #f9fafb;
}

.badge-status-cancelled {
    background-color: #fee2e2;
    color: #b91c1c;
}

