/* YorYorchi - Custom Styles */

:root {
    --primary-color: #10b981;
    --primary-dark: #059669;
    --secondary-color: #6366f1;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gradient-1: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-2: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-3: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
    min-height: 100vh;
    color: var(--dark-color);
}

/* Card Styles */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Button Styles */
.btn {
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

/* Candidate Card */
.candidate-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.candidate-card img {
    height: 300px;
    object-fit: cover;
}

.candidate-card .card-body {
    padding: 1.5rem;
}

/* Profile Picture */
.profile-picture {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Badge Custom */
.badge-custom {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Navbar Custom */
.navbar-custom {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
}

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

/* Responsive */
@media (max-width: 768px) {
    .candidate-card img {
        height: 250px;
    }

    .profile-picture {
        width: 120px;
        height: 120px;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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

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

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state .icon {
    font-size: 4rem;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--secondary-color);
    opacity: 0.8;
}

/* Login Page Specific */
.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-header {
    background: var(--gradient-1);
    padding: 2rem;
    text-align: center;
    color: white;
}

.login-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-header p {
    opacity: 0.9;
    margin: 0;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

.btn-primary {
    background: var(--gradient-1);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Dashboard Navbar */
.navbar-custom {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Profile Card Enhancement */
.profile-picture {
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

/* Candidate Card Enhanced */
.candidate-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.candidate-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Glass Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Islamic Pattern Background (optional) */
.pattern-bg {
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(16, 185, 129, 0.02) 35px, rgba(16, 185, 129, 0.02) 70px);
}

/* User Details */
.user-details {
    font-size: 0.95rem;
    line-height: 1.8;
}

.user-details strong {
    color: var(--dark-color);
    font-weight: 600;
}

.user-details .col-md-6,
.user-details .col-12 {
    padding: 0.5rem;
    border-left: 3px solid var(--primary-color);
    background: rgba(16, 185, 129, 0.05);
    border-radius: 5px;
    margin-bottom: 0.5rem;
}
