/* custom.css - CSS เพิ่มเติม */

/* Global Styles */
body {
    font-family: 'Sarabun', 'Prompt', sans-serif;
    background-color: #f5f7fa;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

/* Button Styles */
.btn {
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
}

.btn-primary {
    background: #1A5276;
    border-color: #1A5276;
}

.btn-primary:hover {
    background: #2E86C1;
    border-color: #2E86C1;
}

/* Table Styles */
.table {
    font-size: 14px;
}

.table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
}

.form-control:focus {
    border-color: #1A5276;
    box-shadow: 0 0 0 0.2rem rgba(26, 82, 118, 0.25);
}

.form-select {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

/* Sidebar Styles */
.sidebar {
    min-height: 100vh;
    background: #1A5276;
    color: white;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar .nav-link.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 10px;
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.stat-card .icon {
    font-size: 30px;
    opacity: 0.5;
}

.stat-card .number {
    font-size: 28px;
    font-weight: bold;
}

.stat-card .label {
    font-size: 14px;
    color: #666;
}

/* Chart Container */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* Profile Image */
.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1A5276;
}

.profile-image-sm {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        padding: 10px 0;
    }
    
    .stat-card {
        margin-bottom: 15px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Badge Styles */
.badge-viewer {
    background: #95A5A6;
    color: white;
}

.badge-member {
    background: #3498DB;
    color: white;
}

.badge-admin {
    background: #E67E22;
    color: white;
}

.badge-super_admin {
    background: #C0392B;
    color: white;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* OTP Input */
.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin: 0 5px;
}

.otp-input:focus {
    border-color: #1A5276;
    box-shadow: 0 0 0 0.2rem rgba(26, 82, 118, 0.25);
}

/* Truncated Text */
.truncated {
    color: #999;
    font-family: monospace;
}