/* Dashboard Custom Styles */


/* Animations */

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

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


/* Dashboard Cards */

.dashboard-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    animation: fadeInUp 0.6s ease;
}

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


/* Gradient Cards */

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

.card-gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.card-gradient-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.card-gradient-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}


/* Welcome Section */

.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}


/* Icons */

.icon-large {
    font-size: 3rem;
    animation: pulse 2s infinite;
}


/* Progress Bars */

.progress-custom {
    height: 25px;
    border-radius: 15px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-custom .progress-bar {
    border-radius: 15px;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    transition: width 1s ease-in-out;
}


/* Qurban Cards */

.qurban-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    border-radius: 15px;
}

.qurban-card:hover {
    border-color: #007bff;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.1);
}

.qurban-card.selected {
    border-color: #28a745;
    background-color: #f8fff9;
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.2);
}

.animal-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.qurban-card:hover .animal-icon {
    transform: scale(1.1);
}


/* Price Tags */

.price-tag {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 1.2rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}


/* Profile Section */

.profile-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.1);
}


/* Buttons */

.btn-update {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    color: white;
}

.btn-update:hover {
    background: linear-gradient(135deg, #1e7e34, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
    color: white;
}


/* Form Enhancements */

.form-floating>label {
    color: #6c757d;
    transition: all 0.3s ease;
}

.form-floating>.form-control:focus~label {
    color: #007bff;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}


/* Alert Enhancements */

.alert {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border-left: 4px solid #17a2b8;
}


/* Table Enhancements */

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
    transform: scale(1.01);
    transition: all 0.2s ease;
}


/* Badge Enhancements */

.badge {
    border-radius: 10px;
    padding: 0.5em 0.75em;
    font-weight: 500;
}


/* Mobile Responsiveness */

@media (max-width: 768px) {
    .welcome-section {
        padding: 1.5rem;
        text-align: center;
    }
    .welcome-section h1 {
        font-size: 1.8rem;
    }
    .icon-large {
        font-size: 2rem;
    }
    .animal-icon {
        font-size: 3rem;
    }
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    .dashboard-card {
        margin-bottom: 1rem;
    }
}


/* Loading Animation */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Smooth Scrolling */

html {
    scroll-behavior: smooth;
}


/* Focus States */

.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}


/* Dark Mode Support */

@media (prefers-color-scheme: light) {
    .dashboard-card {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    .profile-card {
        background-color: #2d3748;
        color: #e2e8f0;
    }
}