/* ========================================
   CUSTOM STYLES - SDMBW Alumni System
   ======================================== */

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 16px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    border-left: 4px solid;
    min-width: 300px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left-color: #198754;
}

.toast-error {
    border-left-color: #dc3545;
}

.toast-warning {
    border-left-color: #ffc107;
}

.toast-info {
    border-left-color: #0dcaf0;
}

.toast-icon {
    font-size: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.toast-success .toast-icon { color: #198754; }
.toast-error .toast-icon { color: #dc3545; }
.toast-warning .toast-icon { color: #ffc107; }
.toast-info .toast-icon { color: #0dcaf0; }

.toast-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

/* ========================================
   ALERT IMPROVEMENTS
   ======================================== */
.alert {
    margin-bottom: 1.5rem;
    margin-top: 0;
    border-radius: 8px;
    padding: 14px 18px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.alert-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.alert-success {
    background-color: #d1e7dd;
    border-left: 4px solid #198754;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #842029;
}

.alert-info {
    background-color: #cff4fc;
    border-left: 4px solid #0dcaf0;
    color: #055160;
}

.alert i {
    font-size: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.alert .btn-close {
    background: transparent;
    opacity: 0.5;
}

.alert .btn-close:hover {
    opacity: 1;
}

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

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* ========================================
    LOADING STATES
   ======================================== */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
    cursor: not-allowed;
}

.spinning {
    animation: spin 1s linear infinite;
}

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

.btn-loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* ========================================
    EMPTY STATES
   ======================================== */
.empty-state {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
}

.empty-state svg,
.empty-state i {
    opacity: 0.5;
    color: #adb5bd;
}

.empty-state h4,
.empty-state h5 {
    font-weight: 600;
    color: #6c757d;
    margin-top: 1rem;
}

.empty-state p {
    color: #adb5bd;
    font-size: 14px;
    margin-bottom: 1rem;
}

.empty-state .btn {
    margin-top: 0.5rem;
}

/* ========================================
    DEFAULT AVATAR
   ======================================== */
.default-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
}

.default-avatar.avatar-sm {
    width: 48px;
    height: 48px;
}

.default-avatar.avatar-md {
    width: 80px;
    height: 80px;
}

.default-avatar .icon-user {
    font-size: 48px;
    color: white;
    opacity: 0.3;
}

.default-avatar.avatar-sm .icon-user {
    font-size: 24px;
}

.default-avatar.avatar-md .icon-user {
    font-size: 36px;
}

.default-avatar .avatar-text {
    position: absolute;
    font-size: 48px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

.default-avatar.avatar-sm .avatar-text {
    font-size: 20px;
}

.default-avatar.avatar-md .avatar-text {
    font-size: 32px;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.profile-photo.photo-sm {
    width: 48px;
    height: 48px;
    border: 2px solid white;
}

.profile-photo.photo-md {
    width: 80px;
    height: 80px;
    border: 3px solid white;
}

/* ========================================
    RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .toast {
        min-width: auto;
    }
}
