/* assets/css/style.css */

:root {
    --primary-color: #e83e8c;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --body-bg: #fff5f8;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 8px 15px rgba(232, 62, 140, 0.2);
}

/* General Styles */
body {
    background-color: var(--body-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 20px 0;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), #d43f8a);
    color: white;
    font-weight: bold;
    border-bottom: none;
    padding: 15px 20px;
}

.card-header h3, .card-header h4 {
    margin: 0;
    color: white;
}

.card-body {
    padding: 20px;
}

/* Profile Cards */
.profile-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.profile-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.profile-image-small {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.profile-info {
    padding: 15px;
}

.profile-name {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.profile-detail {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.profile-detail i {
    color: var(--primary-color);
    width: 20px;
    margin-right: 5px;
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #d43f8a);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d43f8a, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(232, 62, 140, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #218838);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #c82333);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* Forms */
.form-control {
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(232, 62, 140, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

/* Tables */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color), #d43f8a);
    color: white;
    border: none;
    padding: 12px;
}

.table tbody tr:hover {
    background-color: rgba(232, 62, 140, 0.05);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--info-color);
}

/* Badges */
.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-pending {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.badge-accepted {
    background-color: var(--success-color);
    color: white;
}

.badge-rejected {
    background-color: var(--danger-color);
    color: white;
}

/* Interest Cards */
.interest-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.interest-card:hover {
    transform: translateX(5px);
    box-shadow: var(--hover-shadow);
}

.interest-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Search Filters */
.search-filters {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 80px;
}

.filter-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e1e1;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

/* Dashboard Stats */
.stat-card {
    background: linear-gradient(135deg, var(--primary-color), #d43f8a);
    color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Admin Panel */
.admin-sidebar {
    background: linear-gradient(135deg, var(--dark-color), #23272b);
    color: white;
    min-height: calc(100vh - 60px);
    padding: 20px;
}

.admin-menu-item {
    padding: 12px 15px;
    margin: 5px 0;
    border-radius: 5px;
    color: white;
    transition: all 0.3s ease;
}

.admin-menu-item:hover, .admin-menu-item.active {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* Loading Spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-image {
        height: 150px;
    }
    
    .stat-card {
        margin-bottom: 15px;
    }
    
    .search-filters {
        position: static;
        margin-bottom: 20px;
    }
    
    .admin-sidebar {
        min-height: auto;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn, .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Custom Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Profile View Styles */
.profile-detail-table {
    width: 100%;
    margin-top: 20px;
}

.profile-detail-table tr {
    border-bottom: 1px solid #e1e1e1;
}

.profile-detail-table td {
    padding: 12px 10px;
}

.profile-detail-table td:first-child {
    font-weight: bold;
    color: var(--primary-color);
    width: 40%;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), #d43f8a);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}


body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

.navbar {
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    border: none;
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: bold;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.profile-photo {
    max-width: 200px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.table th {
    width: 150px;
    background-color: #f8f9fa;
}

.interest-card {
    transition: transform 0.2s;
}

.interest-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}

.badge {
    padding: 5px 10px;
    font-size: 12px;
}

.alert {
    border-radius: 8px;
    border: none;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

@media (max-width: 768px) {
    .table th {
        width: 100px;
    }
    
    .profile-photo {
        max-width: 150px;
    }
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Dashboard specific */
.dashboard-card {
    text-align: center;
    padding: 30px 20px;
}

.dashboard-card i {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 20px;
}

/* Search results */
.search-result-item {
    border-bottom: 1px solid #dee2e6;
    padding: 15px 0;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Form validation */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 80%;
    margin-top: 5px;
}



