/* Custom CSS for KCET Assist */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Step Circles */
.step-circle {
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.step-circle:hover {
    transform: scale(1.1);
}

/* Statistics */
.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffc107 !important;
}

/* Footer */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffc107 !important;
}

/* Badge Animations */
.badge {
    animation: fadeIn 0.5s ease;
}

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

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Alert Styles */
.alert {
    animation: slideDown 0.5s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .stat-item .display-4 {
        font-size: 2rem;
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Styles */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background-color: #667eea;
    border-color: #667eea;
}

.btn-primary:hover {
    background-color: #5a6fd8;
    border-color: #5a6fd8;
}

/* Table Styles */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: #667eea;
    color: white;
    border: none;
}

/* Pagination */
.pagination .page-link {
    color: #667eea;
}

.pagination .page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
    color: #fff;
}

.pagination .page-item.active .page-link:hover {
    background-color: #5a6fd6;
    border-color: #5a6fd6;
    color: #fff;
}

/* Coin Badge Animation */
.coin-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Profile Completion Progress */
.progress {
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.6s ease;
}

/* Activity Feed */
.activity-item {
    border-left: 3px solid #667eea;
    padding-left: 15px;
    margin-bottom: 15px;
}

.activity-item.positive {
    border-left-color: #28a745;
}

.activity-item.negative {
    border-left-color: #dc3545;
}

/* Search Results */
.search-result {
    transition: all 0.3s ease;
}

.search-result:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* College Card */
.college-card {
    position: relative;
    overflow: hidden;
}

.college-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.college-card:hover::before {
    left: 100%;
}

/* Rank Prediction Result */
.prediction-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.prediction-rank {
    font-size: 3rem;
    font-weight: bold;
    margin: 20px 0;
}

.confidence-score {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Application Status */
.status-applied {
    background-color: #ffc107;
    color: #212529;
}

.status-accepted {
    background-color: #28a745;
    color: white;
}

.status-rejected {
    background-color: #dc3545;
    color: white;
}

.status-pending {
    background-color: #17a2b8;
    color: white;
}

/* Premium Feature Lock */
.premium-lock {
    position: relative;
}

.premium-lock::after {
    content: '\f023';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ffc107;
    font-size: 1.2rem;
}

/* Mobile Menu */
@media (max-width: 992px) {
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 5px 0;
    }
}
