/* CHP Risk Reporting System - Blue and White Theme */

:root {
    --primary-blue: #0047AB;
    --light-blue: #0066CC;
    --lighter-blue: #3399FF;
    --lightest-blue: #E6F2FF;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #E5E5E5;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --red-accent: #DC3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sarabun', 'Kanit', 'Prompt', sans-serif;
    background: linear-gradient(135deg, var(--lightest-blue) 0%, var(--white) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Background bokeh effect */
.bokeh-bg {
    position: relative;
    overflow: hidden;
}

.bokeh-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(51, 153, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 71, 171, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.bokeh-bg > * {
    position: relative;
    z-index: 1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header-section {
    background: var(--white);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 2px solid var(--light-blue);
    position: relative;
}

.header-title {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.header-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.decorative-shape {
    width: 150px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 4px;
}

/* Card/Form Container */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 71, 171, 0.1);
    margin: 20px 0;
}

.page-title {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--white);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);
}

.form-control::placeholder {
    color: #999;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Button Styles */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 71, 171, 0.3);
}

.btn-secondary {
    background: var(--lighter-blue);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

.btn-success {
    background: #28a745;
    color: var(--white);
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Alert/Note Styles */
.alert-note {
    color: var(--red-accent);
    font-size: 0.9rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.alert-note::before {
    content: '*';
    font-weight: bold;
}

.help-text {
    color: var(--red-accent);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Logo Styles */
.logo-container {
    text-align: center;
    margin: 20px 0;
}

.logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid #FFD700;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo-text {
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--light-gray);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: var(--off-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-blue);
    background: var(--lightest-blue);
}

.upload-icon {
    font-size: 3rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 968px) {
    .two-column {
        grid-template-columns: 1fr;
    }
}

/* LINE Panel Styles */
.line-panel {
    background: var(--primary-blue);
    border-radius: 12px;
    padding: 25px;
    color: var(--white);
    box-shadow: 0 4px 8px rgba(0, 71, 171, 0.2);
}

.line-logo {
    background: var(--lighter-blue);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
    font-weight: bold;
    margin-bottom: 20px;
}

.notification-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.notification-title {
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rich-menu {
    margin-top: 25px;
}

.rich-menu-title {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.menu-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
}

/* Section Divider */
.section-divider {
    height: 2px;
    background: var(--light-blue);
    margin: 30px 0;
}

/* Login Page Specific */
.login-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
}

.login-title {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
}

.login-subtitle {
    color: var(--primary-blue);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 30px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-blue {
    color: var(--primary-blue);
}

.text-white {
    color: var(--white);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-title {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .btn, .line-panel {
        display: none;
    }
}
