/* Custom CSS for Acad.pk */

/* Custom Dropdown Styling */
.custom-dropdown {
    position: relative;
}

.custom-dropdown-options {
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    animation: dropdownSlide 0.2s ease-out;
}

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

.custom-dropdown-option:hover {
    background-color: #374151;
}

.custom-dropdown-option:hover .w-4 {
    border-color: #10b981;
}

/* Checkbox styling */
.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #374151;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-custom::after {
    content: '';
    width: 10px;
    height: 6px;
    border: 2px solid #10b981;
    border-top: none;
    border-right: none;
    position: absolute;
    top: 3px;
    left: 3px;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.2s ease;
}

input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
}

input[type="checkbox"]:checked + .checkbox-custom::after {
    transform: rotate(-45deg) scale(1);
}

/* Radio button styling */
.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #374151;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

input[type="radio"]:checked + .radio-custom {
    border-color: #10b981;
}

input[type="radio"]:checked + .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Form label hover effects */
label:has(input[type="radio"]) {
    cursor: pointer;
}

label:has(input[type="radio"]:checked) {
    border-color: #10b981 !important;
    background-color: rgba(16, 185, 129, 0.1);
}

label:has(input[type="checkbox"]:checked) {
    border-color: #10b981 !important;
    background-color: rgba(16, 185, 129, 0.1);
}

/* Smooth animations */
* {
    transition: all 0.3s ease;
}

/* Loading animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

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

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* Hover effects for cards */
.group:hover {
    transform: translateY(-2px);
}

/* Focus states */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Button hover effects */
button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Backdrop blur */
.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}