/**
 * ============================================
 * MYCHILD INTERNATIONAL - Custom Styles
 * ============================================
 * File: assets/css/style.css
 * Version: 3.0
 * ============================================
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary-dark: #003366;
    --primary-light: #00A0DC;
    --accent: #FFB800;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --sidebar-width: 260px;
}

/* ============================================
   BASE STYLES
   ============================================ */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   BACKGROUND COLORS
   ============================================ */
.bg-primary-dark {
    background-color: var(--primary-dark) !important;
}

.bg-primary-light {
    background-color: var(--primary-light) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

/* ============================================
   TEXT COLORS
   ============================================ */
.text-primary-dark {
    color: var(--primary-dark) !important;
}

.text-primary-light {
    color: var(--primary-light) !important;
}

.text-accent {
    color: var(--accent) !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-donate {
    background-color: var(--accent);
    color: var(--primary-dark);
    font-weight: 600;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-donate:hover {
    background-color: #e6a600;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-primary-custom {
    background-color: var(--primary-dark);
    color: var(--white);
    border: none;
}

.btn-primary-custom:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--accent);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
    background-size: 100px;
}

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

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

.card-header {
    background-color: var(--primary-dark);
    color: white;
    border-radius: 10px 10px 0 0 !important;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background-color: var(--primary-dark);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

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

/* ============================================
   SIDEBAR (Admin/User Panel)
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--primary-dark);
    color: white;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

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

.sidebar-nav .nav-link i {
    margin-right: 10px;
    font-size: 1.2em;
}

.sidebar-nav hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 15px 20px;
}

/* Main Content with Sidebar */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-light);
}

/* Responsive Sidebar */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* ============================================
   STATISTICS CARDS
   ============================================ */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5em;
}

.stat-card .stat-number {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-dark);
}

.stat-card .stat-label {
    color: var(--text-light);
    font-size: 0.9em;
}

/* ============================================
   DONATION PROGRESS
   ============================================ */
.donation-progress {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.progress {
    height: 15px;
    border-radius: 10px;
    background: #e9ecef;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 10px;
}

/* ============================================
   FORMS
   ============================================ */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(0, 160, 220, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
}

/* ============================================
   TABLES
   ============================================ */
.table thead th {
    background-color: var(--primary-dark);
    color: white;
    border: none;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 160, 220, 0.1);
}

/* ============================================
   BADGES
   ============================================ */
.badge-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 500;
}

.badge-active { background-color: var(--success); color: white; }
.badge-pending { background-color: var(--warning); color: var(--text-dark); }
.badge-inactive { background-color: var(--danger); color: white; }

/* ============================================
   UTILITIES
   ============================================ */
.shadow-soft {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.rounded-lg {
    border-radius: 15px !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .stat-card {
        margin-bottom: 20px;
    }
}
