/* =============================================================
   site.css — Small Garage Cloud global styles
   ============================================================= */

/* ?? Base ?? */
html {
    font-size: 14px;
    position: relative;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ?? Brand colours ?? */
:root {
    --sgc-gold:        goldenrod;
    --sgc-dark:        #212529;
    --sgc-sidebar:     #2c2f33;
    --sgc-purple-1:    #667eea;
    --sgc-purple-2:    #764ba2;
    --sgc-bg:          #f4f6f9;
    --sgc-text:        #343a40;
    --sgc-muted:       #6c757d;
}

/* ?? Focus rings ?? */
.btn:focus,
.btn:active:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--sgc-purple-1);
}

/* ?? Public navbar nav buttons ?? */
.nav-btn {
    padding: 6px 18px !important;
    margin: 0 4px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-btn:hover {
    border-color: goldenrod;
    color: goldenrod !important;
    background: rgba(218, 165, 32, 0.1);
    transform: translateY(-1px);
}

.nav-btn-login {
    border-color: goldenrod;
    color: goldenrod !important;
    font-weight: 600;
}

.nav-btn-login:hover {
    background: goldenrod;
    color: #212529 !important;
}

/* ?? Auth / login card ?? */
.sgc-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sgc-purple-1) 0%, var(--sgc-purple-2) 100%);
    padding: 2rem 1rem;
}

.sgc-auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.sgc-auth-header {
    background: #212529;
    padding: 2rem;
    text-align: center;
    border-bottom: 3px solid goldenrod;
}

.sgc-auth-header .brand {
    color: goldenrod;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
}

.sgc-auth-header .subtitle {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sgc-auth-body {
    padding: 2rem;
}

.sgc-auth-body .btn-primary {
    background: linear-gradient(135deg, var(--sgc-purple-1) 0%, var(--sgc-purple-2) 100%);
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.65rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sgc-auth-body .btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ?? Cards ?? */
.sgc-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none;
}

.sgc-card .card-header {
    background: var(--sgc-dark);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
    border-bottom: 2px solid goldenrod;
}

/* ?? Stat tiles ?? */
.sgc-stat-tile {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sgc-stat-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.sgc-stat-tile .tile-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--sgc-purple-1) 0%, var(--sgc-purple-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.sgc-stat-tile .tile-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--sgc-text);
    line-height: 1;
}

.sgc-stat-tile .tile-label {
    font-size: 0.8rem;
    color: var(--sgc-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ?? Validation ?? */
.validation-summary-errors ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

/* ?? Mobile ?? */
@media (max-width: 768px) {
    .sgc-auth-card {
        max-width: 100%;
    }
}


@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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;
}

html {
  position: relative;
  min-height: 100%;
}

body {
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}