/* Custom styles for IDC Member Center */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --focus-gradient: linear-gradient(white, white), linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
}

/* Button scaling effect */
.btn-premium {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium:hover {
    transform: scale(1.05);
}

/* Card shadow transition */
.card-premium {
    transition: all 0.3s ease;
}

.card-premium:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient border on focus */
.input-premium {
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.input-premium:focus {
    border: 1px solid transparent;
    background-image: var(--focus-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Sidebar styles */
.sidebar-link {
    transition: all 0.2s ease;
}

.sidebar-link.active {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-right: 4px solid #3b82f6;
}

/* Glassmorphism effects */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 440px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Custom Beautiful Select Dropdown */
.select-premium {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    padding-right: 2.5rem;
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.select-premium:hover {
    border-color: #94a3b8;
    background-color: #f1f5f9;
}

.select-premium:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
}

.select-premium option {
    padding: 0.75rem;
    background-color: #ffffff;
    color: #334155;
}

.select-premium option:hover {
    background-color: #eff6ff;
}

/* Toast Notifications */
.toast-notification {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    pointer-events: auto;
    animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-notification.toast-success {
    border-left: 4px solid #22c55e;
}

.toast-notification.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-notification.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast-notification.toast-warning {
    border-left: 4px solid #f59e0b;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Enhanced Modal Styling */
.modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    width: 90%;
    max-width: 440px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Icon Animation in Modals */
.modal-icon-container {
    animation: modalIconBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes modalIconBounce {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Button Enhanced Styles */
.btn-confirm {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px -2px rgba(59, 130, 246, 0.4);
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -2px rgba(59, 130, 246, 0.5);
}

.btn-confirm:active {
    transform: translateY(0);
}

.btn-cancel {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 0.875rem;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

/* Checkbox Enhanced Styles */
.checkbox-premium {
    appearance: none;
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid #cbd5e1;
    border-radius: 0.375rem;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.checkbox-premium:checked {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: transparent;
}

.checkbox-premium:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 0.25rem;
    height: 0.5rem;
    border: solid white;
    border-width: 0 2px 2px 0;
}

.checkbox-premium:hover {
    border-color: #94a3b8;
}

.checkbox-premium:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Radio button enhanced styles */
.radio-premium {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.radio-premium:checked {
    border-color: #3b82f6;
}

.radio-premium:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.radio-premium:hover {
    border-color: #94a3b8;
}

/* Scrollbar Styling for Modals/Dropdowns */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #64748b 0%, #475569 100%);
}