
/* ==========================
   SOFTWEYA SAVING - STRIPE SAAS UI (FINAL CLEAN SYSTEM)
   ========================== */

/* ==========================
   BASE
   ========================== */

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f6f9fc;
    color: #1f2937;
}

/* ==========================
   APP LAYOUT
   ========================== */

.main {
    margin-left: 260px;
    padding: 40px;
}

/* This is the KEY FIX: all content is constrained here */
.content {
    max-width: 1100px;
    margin: 0 auto;
}

/* ==========================
   SIDEBAR (STRIPE STYLE)
   ========================== */

.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    background: #0a2540;
    padding: 20px;
    color: white;
}

.sidebar h2 {
    color: #00d4ff;
    margin-bottom: 25px;
    font-weight: 600;
}

.sidebar a {
    display: block;
    padding: 12px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: 0.2s;
    font-size: 14px;
}

.sidebar a:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

/* ==========================
   CARDS (UNIFIED SYSTEM)
   ========================== */

.card {
    background: white;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #eef2f7;
    margin-bottom: 20px;
}

/* GRID SYSTEM */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

/* ==========================
   BUTTONS (STRIPE STYLE)
   ========================== */

.btn {
    background: #635bff;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

/* Secondary */
.btn-secondary {
    background: #eef2ff;
    color: #3730a3;
}

.btn-secondary:hover {
    background: #e0e7ff;
}

/* ==========================
   🔥 STRIPE FORM SYSTEM (FIXED CORE)
   ========================== */

/* THIS is what fixes ALL stretching */
.form-shell {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* FORM CARD (ONLY FORM CONTAINER YOU SHOULD USE) */
.form-card {
    width: 100%;
    max-width: 520px;
    background: white;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #eef2f7;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* FORM TITLE */
.form-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 18px;
}

/* INPUTS */
input, select, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin-bottom: 14px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

input:focus, select:focus, textarea:focus {
    border-color: #635bff;
    box-shadow: 0 0 0 3px rgba(99,91,255,0.15);
}

/* ==========================
   TYPOGRAPHY
   ========================== */

h1 { font-size: 26px; font-weight: 600; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; color: #334155; }

/* ==========================
   STATS
   ========================== */

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
}

/* ==========================
   RESPONSIVE
   ========================== */

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main {
        margin-left: 0;
        padding: 20px;
    }
}
/* ==========================
   🔥 HARD LAYOUT FIX (FORCE CENTER SYSTEM)
   ========================== */

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* FORCE ALL CARDS TO STOP STRETCHING */
.card {
    width: 100%;
    max-width: 900px;
}

/* FORCE FORMS TO BE SMALL */
form {
    width: 100%;
    max-width: 520px;
}

/* CENTER ANY FORM INSIDE CARD */
.card form {
    margin: 0 auto;
}