/* ==================================================
 * VOX Notification System Styles
 * ================================================== */

.vox-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    min-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
    font-family: inherit;
}

.vox-notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 8px;
}

.vox-notification-message {
    flex: 1;
    margin-right: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.vox-notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.vox-notification-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Notification Types */
.vox-notification-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.vox-notification-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.vox-notification-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.vox-notification-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

/* Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.vox-notification.removing {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* Loading Button Styles */
.vox-btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.vox-btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Input Error Styles */
.vox-input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Dashboard Card Styles */
.dashboard_card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.dashboard_card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card_title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card_body {
    color: rgba(255, 255, 255, 0.8);
}

.user_info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.user_avatar img {
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.user_details h4 {
    color: #fff;
    margin: 0 0 4px 0;
    font-size: 18px;
}

.user_details p {
    margin: 2px 0;
    font-size: 14px;
    opacity: 0.8;
}

.user_stats, .referral_stats, .security_status {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat_item, .status_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.stat_label, .status_label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.stat_value, .status_value {
    font-weight: 600;
    color: #fff;
}

.referral_actions, .security_actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.referral_actions .btn, .security_actions .btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
}

.btn-outline-primary {
    background: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.btn-outline-primary:hover {
    background: #3b82f6;
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.btn-outline-warning {
    background: transparent;
    color: #f59e0b;
    border: 2px solid #f59e0b;
}

.btn-outline-warning:hover {
    background: #f59e0b;
    color: white;
}

.btn-outline-secondary {
    background: transparent;
    color: #6b7280;
    border: 2px solid #6b7280;
}

.btn-outline-secondary:hover {
    background: #6b7280;
    color: white;
}

.referral_link_section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.referral_link_section h5 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 16px;
}

.input-group {
    display: flex;
    gap: 8px;
}

.input-group .form-control {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
}

.input-group .form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group .btn {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    min-width: auto;
    flex-shrink: 0;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table th {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.table td {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-success {
    background: #10b981;
    color: white;
}

.bg-warning {
    background: #f59e0b;
    color: white;
}

.bg-danger {
    background: #ef4444;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vox-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
    
    .dashboard_card {
        padding: 16px;
    }
    
    .user_info {
        flex-direction: column;
        text-align: center;
    }
    
    .referral_actions,
    .security_actions {
        flex-direction: column;
    }
    
    .referral_actions .btn,
    .security_actions .btn {
        width: 100%;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group .btn {
        width: 100%;
    }
} 