/* ============================================
   MULTICHATS - REUSABLE COMPONENTS
   ============================================ */

/* === NOTIFICATIONS === */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: var(--radius-xl, 12px);
    background: var(--color-bg-white, #fff);
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.1));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: var(--z-toast, 200);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s var(--transition-ease, ease);
}

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

.notification-hide {
    opacity: 0;
    transform: translateX(100%);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-content i {
    font-size: 20px;
    flex-shrink: 0;
}

.notification-content span {
    font-size: 14px;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 4px;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

/* Notification types */
.notification-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.notification-success i {
    color: #10b981;
}

.notification-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    color: #991b1b;
}

.notification-error i {
    color: #ef4444;
}

.notification-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    color: #92400e;
}

.notification-warning i {
    color: #f59e0b;
}

.notification-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.notification-info i {
    color: #3b82f6;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-family-base, sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg, 8px);
    cursor: pointer;
    transition: all 0.2s var(--transition-ease, ease);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--color-primary, #2563eb);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-hover, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: var(--color-bg-gray-100, #e5e7eb);
    color: var(--color-text-dark, #111827);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-bg-gray-200, #d1d5db);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-medium, #374151);
    border: 1px solid var(--color-border, #e5e7eb);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--color-bg-gray-50, #f3f4f6);
    border-color: var(--color-border-dark, #d1d5db);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* === FORM CONTROLS === */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-dark, #111827);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--color-text-dark, #111827);
    background: var(--color-bg-white, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-lg, 8px);
    transition: all 0.2s var(--transition-ease, ease);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control.error {
    border-color: var(--color-error, #ef4444);
    background-color: #fef2f2;
}

.form-control.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control::placeholder {
    color: var(--color-text-muted, #9ca3af);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* === LOADING SPINNER === */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

/* === SCROLL REVEAL === */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === NUMBER INPUT GROUP === */
.number-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.number-input-group input {
    width: 60px;
    text-align: center;
    -moz-appearance: textfield;
}

.number-input-group input::-webkit-outer-spin-button,
.number-input-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.number-input-group button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-gray-100, #e5e7eb);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-md, 6px);
    cursor: pointer;
    transition: all 0.2s ease;
}

.number-input-group button:hover {
    background: var(--color-bg-gray-200, #d1d5db);
}

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