/**
 * ================================================
 * STYLESHEET SISTEM PAKAR DERMATITIS
 * Modern & Professional Design
 * ================================================
 */

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Modern Medical Theme */
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #16a085;
    --light-bg: #ecf0f1;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --border-color: #bdc3c7;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    
    /* Typography */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Arial', sans-serif;
}

body {
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }

p {
    margin-bottom: 10px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* ========== LAYOUT CONTAINER ========== */
.wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ========== SIDEBAR NAVIGATION ========== */
.sidebar {
    width: 260px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: var(--white);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 25px 20px;
    background: rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header .logo {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.sidebar-header h3 {
    color: var(--white);
    font-size: 16px;
    text-align: center;
    margin-bottom: 5px;
    line-height: 1.3;
}

.sidebar-header p {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    text-align: center;
    margin: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 15px 0;
}

.sidebar-menu li {
    margin: 5px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-left: 3px solid var(--secondary-color);
    padding-left: 17px;
}

.sidebar-menu a i {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    background: rgba(0,0,0,0.1);
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
}

.user-details h4 {
    color: var(--white);
    font-size: 14px;
    margin: 0 0 3px 0;
}

.user-details p {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    margin: 0;
}

/* ========== MAIN CONTENT AREA ========== */
.main-content {
    flex: 1;
    margin-left: 260px;
    background: var(--light-bg);
    min-height: 100vh;
}

.topbar {
    background: var(--white);
    padding: 15px 30px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
}

.topbar h2 {
    color: var(--primary-color);
    font-size: 22px;
    margin: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-time {
    color: var(--text-muted);
    font-size: 13px;
}

.content-area {
    padding: 30px;
}

/* ========== CARDS ========== */
.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-header {
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.card-body {
    padding: 10px 0;
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
}

.btn-success:hover {
    background: #229954;
}

.btn-danger {
    background: var(--accent-color);
    color: var(--white);
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-warning {
    background: var(--warning-color);
    color: var(--white);
}

.btn-info {
    background: var(--info-color);
    color: var(--white);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ========== TABLES ========== */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

table thead {
    background: var(--primary-color);
    color: var(--white);
}

table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--light-bg);
}

table tbody tr:hover {
    background: rgba(52, 152, 219, 0.05);
}

/* ========== ALERTS ========== */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: var(--success-color);
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: var(--accent-color);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: var(--warning-color);
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: var(--info-color);
}

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary { background: var(--secondary-color); color: var(--white); }
.badge-success { background: var(--success-color); color: var(--white); }
.badge-danger { background: var(--accent-color); color: var(--white); }
.badge-warning { background: var(--warning-color); color: var(--white); }
.badge-info { background: var(--info-color); color: var(--white); }

/* ========== LOGIN PAGE ========== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 20px;
}

.login-container {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 450px;
    width: 100%;
    overflow: hidden;
}

.login-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px;
    text-align: center;
}

.login-header .logo {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary-color);
}

.login-body {
    padding: 35px 30px;
}

/* ========== KONSULTASI PAGE ========== */
.gejala-list {
    list-style: none;
}

.gejala-item {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.gejala-item:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow);
}

.gejala-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.gejala-item input[type="checkbox"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.tingkat-keyakinan {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--light-bg);
}

.tingkat-keyakinan select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

/* ========== HASIL DIAGNOSA ========== */
.hasil-box {
    background: linear-gradient(135deg, var(--success-color) 0%, #229954 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.hasil-box h2 {
    color: var(--white);
    margin-bottom: 10px;
}

.persentase {
    font-size: 48px;
    font-weight: bold;
    margin: 15px 0;
}

/* ========== PRINT STYLES ========== */
@media print {
    .sidebar,
    .topbar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-260px);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .topbar {
        padding: 15px;
    }
    
    .content-area {
        padding: 15px;
    }
    
    table {
        font-size: 12px;
    }
    
    table th,
    table td {
        padding: 8px;
    }
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-primary { color: var(--secondary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--accent-color); }
.text-muted { color: var(--text-muted); }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }
.float-right { float: right; }
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
