/* assets/css/style.css - Complete User Interface Styles */

:root {
    --primary-color: #f59e0b;
    --primary-dark: #d97706;
    --secondary-color: #1f2937;
    --secondary-dark: #111827;
    --success-color: #10b981;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --primary-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --secondary-gradient: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --card-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-light);
    overflow-x: hidden;
    color: var(--text-dark);
}

/* ==================== NAVBAR STYLES ==================== */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand .logo-text {
    color: var(--secondary-color);
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    margin: 0 15px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-register {
    background: var(--primary-gradient);
    color: white !important;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

/* ==================== SECONDARY MENU BAR ==================== */
.secondary-menu {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 0;
    margin-top: 76px;
    position: sticky;
    top: 76px;
    z-index: 999;
}

.menu-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.menu-item {
    flex: 1;
    min-width: 120px;
    padding: 18px 15px;
    text-align: center;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border-right: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    cursor: pointer;
    background: white;
}

.menu-item:last-child {
    border-right: none;
}

.menu-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.menu-item:hover,
.menu-item.active {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: var(--primary-dark);
}

.menu-item:hover i,
.menu-item.active i {
    transform: scale(1.2);
    color: var(--primary-dark);
}

/* Dropdown Menu */
.dropdown-menu-item {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 10px 0;
    z-index: 1000;
}

.dropdown-menu-item:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: #fef3c7;
    color: var(--primary-dark);
    padding-left: 30px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    background: var(--secondary-gradient);
    padding: 100px 0 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::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 1440 320"><path fill="%23f59e0b" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* ==================== FOOTER STYLES ==================== */
.footer {
    background: var(--secondary-dark);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 20px;
    color: #fbbf24;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fbbf24;
    padding-left: 5px;
}

.social-icons a {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.2);
    margin-right: 10px;
    color: #fbbf24;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* ==================== REGISTRATION FORM STYLES ==================== */
body.registration-page {
    background: var(--primary-gradient);
    min-height: 100vh;
    padding: 2rem 0;
}

/* Registration Card */
.card {
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: none;
    overflow: hidden;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    background: var(--primary-gradient);
    color: white;
    padding: 2rem;
    border: none;
}

.card-header h2 {
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.card-body {
    padding: 2.5rem;
    background: white;
}

/* Form Groups */
.form-label {
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 0.5rem;
}

.form-label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.form-control, .form-select {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
    transform: translateY(-2px);
}

/* File Upload Styling */
.form-control[type="file"] {
    padding: 0.5rem;
    cursor: pointer;
}

.form-control[type="file"]:hover {
    background: #f8f9fc;
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.6);
}

.btn-secondary {
    border-radius: 10px;
    padding: 1rem 2rem;
    font-weight: bold;
}

/* Success Message */
.alert {
    border-radius: 15px;
    border: none;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: slideIn 0.5s ease;
}

.alert-success {
    background: var(--success-gradient);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.alert i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Photo Preview */
#photoPreview {
    max-width: 200px;
    max-height: 200px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: 5px solid white;
    margin-top: 1rem;
}

/* Loading Animation */
.btn-primary:disabled {
    opacity: 0.7;
}

.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
}

/* Form Row Spacing */
.row.mb-3 {
    margin-bottom: 1.5rem !important;
}

/* ==================== TABLE STYLES ==================== */
.table {
    margin: 0;
}

.table thead {
    background: var(--secondary-gradient);
    color: white;
}

.table thead th {
    padding: 18px 15px;
    font-weight: 600;
    border: none;
    font-size: 0.9rem;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
    font-size: 0.9rem;
    border-bottom: 1px solid #f3f4f6;
}

.table tbody tr:hover {
    background: #fef3c7;
    transition: all 0.3s ease;
}

.badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-pending {
    background: #fbbf24;
    color: white;
}

.badge-rejected {
    background: #ef4444;
    color: white;
}

/* ==================== PAGINATION ==================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination {
    gap: 5px;
}

.page-link {
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #fef3c7;
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: white;
}

/* ==================== SEARCH AND FILTER ==================== */
.search-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: -30px 0 30px;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    transform: translateY(-50%) scale(1.05);
}

.filter-select {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Stats Bar */
.stats-bar {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.stats-bar h4 {
    margin: 0;
    font-weight: 700;
}

/* ==================== RESPONSIVE STYLES ==================== */
@media (max-width: 992px) {
    .secondary-menu {
        margin-top: 56px;
        top: 56px;
    }
    
    .menu-wrapper {
        flex-direction: column;
    }
    
    .menu-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
    
    .menu-item i {
        margin-bottom: 0;
    }

    .page-title {
        font-size: 2rem;
    }

    .card-body {
        padding: 1.5rem;
    }
    
    .btn-primary {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.4rem;
    }

    .nav-link {
        margin: 10px 0;
    }

    .search-section {
        margin: -20px 0 20px;
        padding: 20px;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.members-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background: var(--primary-gradient) !important;
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
