/* =========================
   RESET + BASE
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: #f1f5f9;
    color: #0f172a;
    min-height: 100vh;
}

/* =========================
   TOP MENU / HEADER
========================= */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: #111827;
}

.topbar .logo {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.menu a {
    color: #e5e7eb;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.menu a:hover {
    color: #ffffff;
}

/* BUTON SETARI FIRMA */
.settings-link {
    background: #2563eb;
    padding: 6px 12px;
    border-radius: 6px;
    color: #ffffff !important;
}

.settings-link:hover {
    background: #1e40af;
}

/* LOGOUT */
.menu .logout {
    color: #f87171;
}

.menu .logout:hover {
    color: #ef4444;
}

/* =========================
   LAYOUT GENERAL
========================= */

.home-container {
    padding: 40px;
    max-width: 1200px;
    margin: auto;
}

h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

h2 {
    font-size: 22px;
    margin-bottom: 15px;
    margin-top: 40px;
}

p {
    line-height: 1.6;
}

/* =========================
   HERO (LOGIN / HOME ONLY)
========================= */

.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    border-radius: 12px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: 0.2s;
    text-align: center;
}

.btn.primary {
    background: #22c55e;
    color: #0f172a;
}

.btn.primary:hover {
    background: #16a34a;
}

.btn.secondary {
    background: #38bdf8;
    color: #0f172a;
}

.btn.secondary:hover {
    background: #0ea5e9;
}

/* =========================
   DASHBOARD CARDS
========================= */

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

.feature-box {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: 0.25s;
}

.feature-box:hover {
    transform: translateY(-6px);
}

.feature-box h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.feature-box p {
    color: #475569;
    margin-bottom: 15px;
    font-size: 15px;
}

/* =========================
   ADMIN BADGE (OPTIONAL)
========================= */

.logo span {
    font-size: 14px;
    margin-left: 6px;
}

/* =========================
   FOOTER
========================= */

.footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px;
    color: #64748b;
    font-size: 14px;
}
/* =========================
   HEADER PUBLIC (SaaS)
========================= */

.header-public {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.header-container {
    max-width: 1200px;
    margin: auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.header-logo {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}

/* Navigation */
.header-nav {
    display: flex;
    gap: 25px;
}

.header-nav a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: 0.2s;
}

.header-nav a:hover {
    color: #0f172a;
}

/* Actions */
.header-actions {
    display: flex;
    gap: 12px;
}

/* Boutons */
.btn-outline {
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #cbd5f5;
    text-decoration: none;
    color: #1e40af;
    font-weight: 600;
    transition: 0.2s;
}

.btn-outline:hover {
    background: #eff6ff;
}

.btn-primary {
    padding: 10px 18px;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #1e40af;
}
/* =========================
   SETTINGS – PREMIUM FORM
========================= */

.settings-wrapper {
    max-width: 1100px;
    margin: auto;
}

.settings-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.settings-card h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #0f172a;
}

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

.settings-group {
    display: flex;
    flex-direction: column;
}

.settings-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.settings-group input,
.settings-group textarea,
.settings-group select {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5f5;
    font-size: 15px;
    transition: 0.2s;
}

.settings-group input:focus,
.settings-group textarea:focus,
.settings-group select:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.settings-logo {
    display: flex;
    gap: 30px;
    align-items: center;
}

.settings-logo-preview {
    width: 160px;
    height: 100px;
    border: 2px dashed #cbd5f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f8fafc;
}

.settings-logo-preview img {
    max-width: 100%;
    max-height: 100%;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.settings-actions button {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

.settings-actions button:hover {
    opacity: 0.95;
}
/* =========================
   ADD CLIENT CARD
========================= */
.client-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.client-card-header {
    margin-bottom: 30px;
}

.client-card-header h2 {
    margin: 0 0 6px 0;
    font-size: 22px;
}

.client-card-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* FORM */
.client-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    margin-top: 22px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group label span {
    color: #dc2626;
}

.form-group input,
.form-group textarea {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
}

/* ACTIONS */
.form-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}
