/* --- Base Variables: Pure Black & White --- */
:root {
    --primary-color: #000000; 
    --accent-color: #000000; 
    --accent-hover: #333333; 
    --text-main: #222222; 
    --text-muted: #666666; 
    --bg-light: #f9fafb; 
    --white: #ffffff; 
    --border-color: #e5e7eb; 
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Montserrat', sans-serif; 
}

html, body { 
    background-color: var(--white); 
    color: var(--text-main); 
    line-height: 1.6; 
    font-weight: 400; 
    overflow-x: hidden; 
    width: 100%;
}

.container { 
    width: 100%;
    max-width: 1500px; 
    margin: 0 auto; 
    padding: 0 5%; 
}

h1, h2, h3 { color: var(--primary-color); font-weight: 800; letter-spacing: -0.5px;} 

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 700; 
    cursor: pointer; transition: all 0.2s ease; border: none; text-decoration: none;
}
.btn-primary { background: var(--accent-color); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-large { padding: 14px 28px; font-size: 15px; }
.btn-outline { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background: var(--white); color: var(--primary-color); }

/* --- Navigation & Hero --- */
.navbar { background: var(--white); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; width: 100%; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 12px 5%; max-width: 1500px; margin: 0 auto; width: 100%; }

.logo { font-size: 22px; font-weight: 900; color: var(--primary-color); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 600; transition: color 0.2s;}
.nav-link:hover { color: var(--primary-color); }
.mobile-toggle { display: none; background: none; border: none; color: var(--primary-color); font-size: 24px; cursor: pointer; }

.hero { padding: 80px 0; background-color: var(--bg-light); border-bottom: 1px solid var(--border-color); width: 100%; }
.hero-container { display: flex; align-items: center; gap: 60px; }
.hero-text { flex: 1; }
.badge { display: inline-block; padding: 6px 12px; background: #e5e5e5; color: var(--primary-color); border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.5px;}
.hero h1 { font-size: 44px; line-height: 1.2; margin-bottom: 24px; letter-spacing: -1px; }
.hero p { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; font-weight: 500;}
.hero-actions { display: flex; gap: 16px; }
.hero-image { flex: 1; display: flex; justify-content: flex-end; }

/* Mockup */
.dashboard-mockup { width: 100%; max-width: 500px; background: var(--white); border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 20px 40px rgba(0,0,0,0.05); overflow: hidden; }
.mockup-header { background: var(--bg-light); padding: 12px; display: flex; gap: 8px; border-bottom: 1px solid var(--border-color); }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-body { display: flex; height: 300px; }
.mockup-sidebar { width: 80px; background: #f0f0f0; border-right: 1px solid var(--border-color); }
.mockup-content { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.mockup-card { height: 60px; background: #e5e5e5; border-radius: 8px; }
.mockup-table { flex: 1; background: #f9f9f9; border-radius: 8px; border: 1px solid var(--border-color);}

.features { padding: 100px 0; width: 100%; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.section-header h2 { font-size: 32px; margin-bottom: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.feature-card { padding: 32px; background: var(--white); border: 1px solid var(--border-color); border-radius: 12px; transition: box-shadow 0.2s; }
.feature-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-color: var(--primary-color); }
.feature-icon { font-size: 32px; margin-bottom: 20px; }
.feature-card h3 { font-size: 20px; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 14px; font-weight: 500; }

.footer { background: var(--primary-color); color: var(--white); padding: 80px 0 40px; width: 100%; }
.footer-bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid #333; color: #999; font-size: 14px; }

/* --- Full-Page Registration Layout --- */
.fullpage-reg-view { min-height: 100vh; background-color: var(--bg-light); padding: 60px 5%; width: 100%; }
.reg-container { margin: 0 auto; }
.wide-container { max-width: 1200px; }
.back-link-btn { background: none; border: none; font-size: 14px; font-weight: 700; color: var(--primary-color); cursor: pointer; margin-bottom: 24px; padding: 0; text-decoration: underline; }
.reg-header { margin-bottom: 32px; }
.reg-header h2 { font-size: 32px; margin-bottom: 8px; }
.reg-header p { color: var(--text-muted); font-size: 15px; }

.fullpage-form { display: flex; flex-direction: column; gap: 24px; }
.form-card { background: var(--white); border: 1px solid var(--border-color); border-radius: 12px; padding: 28px; }
.form-card h3 { font-size: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* --- Modals & Popups --- */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); z-index: 1000; justify-content: center; align-items: center; }
.modal-content { background: var(--white); padding: 40px; border-radius: 12px; max-width: 600px; width: 90%; position: relative; box-shadow: 0 25px 50px rgba(0,0,0,0.15); }
.close-modal { position: absolute; top: 20px; right: 24px; font-size: 24px; color: var(--text-muted); background: none; border: none; cursor: pointer; }
.modal-content h2 { margin-bottom: 8px; }
.modal-content p { color: var(--text-muted); margin-bottom: 32px; font-size: 14px; font-weight: 500; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.category-btn { background: var(--bg-light); border: 1px solid var(--border-color); padding: 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-main); cursor: pointer; transition: all 0.2s; text-align: left; }
.category-btn:hover { border-color: var(--primary-color); background: var(--primary-color); color: var(--white); }

.custom-form { display: flex; flex-direction: column; gap: 20px; text-align: left; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;}
.form-group input, .form-group select { padding: 12px 16px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 14px; font-weight: 500; outline: none; }
.form-group input:focus, .form-group select:focus { border-color: var(--primary-color); }

/* --- Image Upload Styles (Multi-Image Rule) --- */
.multi-image-container { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.image-add-btn { 
    width: 100px; height: 100px; border: 2px dashed var(--border-color); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; background-color: var(--bg-light); transition: all 0.2s;
}
.image-add-btn:hover { border-color: var(--primary-color); background-color: #f0f0f0; }
.image-preview-box {
    width: 100px; height: 100px; border-radius: 8px; overflow: hidden;
    border: 1px solid var(--border-color); box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.image-preview-box img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- DASHBOARD STYLES --- */
.dash-sidebar { width: 260px; background: var(--primary-color); color: var(--white); display: flex; flex-direction: column; }
.dash-logo { padding: 24px; font-size: 22px; font-weight: 900; border-bottom: 1px solid #333; }
.dash-nav { list-style: none; padding: 20px 0; flex: 1; }
.dash-nav li { padding: 16px 24px; cursor: pointer; color: #aaa; font-weight: 600; font-size: 14px; transition: background 0.2s; }
.dash-nav li:hover { background: #111; color: var(--white); }
.dash-nav li.active { background: #222; color: var(--white); border-left: 4px solid var(--white); }

.dash-main { flex: 1; display: flex; flex-direction: column; overflow-y: auto; }
.dash-header { background: var(--white); padding: 16px 32px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.dash-search input { padding: 10px 16px; border: 1px solid var(--border-color); border-radius: 20px; width: 300px; background: var(--bg-light); outline: none; font-size: 14px;}
.dash-profile { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; }
.avatar { background: var(--primary-color); color: white; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.dash-content { padding: 32px; }
.dash-welcome { margin-bottom: 32px; }
.dash-welcome h1 { font-size: 28px; margin-bottom: 8px; }
.dash-welcome p { color: var(--text-muted); font-weight: 500; font-size: 14px;}

.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-bottom: 32px; }
.stat-card { background: var(--white); padding: 24px; border: 1px solid var(--border-color); border-radius: 12px; }
.stat-card h3 { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-number { font-size: 36px; font-weight: 900; color: var(--primary-color); }

@media (max-width: 900px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-image { width: 100%; }
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); padding: 24px; border-bottom: 1px solid var(--border-color); }
    .nav-links.active { display: flex; }
    .dash-sidebar { display: none; }
    .dash-search input { width: 150px; }
}