/* HashAMP - Shared Components Styles */

/* Content Cards */
.content-card {
    background: var(--bg-secondary);
    border: 1px solid #4B5563;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success-color);
}

.btn-success:hover {
    background-color: #059669;
}

.btn-warning {
    background-color: var(--warning-color);
}

.btn-warning:hover {
    background-color: #D97706;
}

.btn-danger {
    background-color: var(--error-color);
}

.btn-danger:hover {
    background-color: #DC2626;
}

/* Forms */
.form-error {
    border-color: var(--error-color) !important;
    background-color: rgba(239, 68, 68, 0.1) !important;
}

.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Notifications */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    padding: 1rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: rgba(16, 185, 129, 0.9);
    border: 1px solid #10B981;
}

.notification.error {
    background: rgba(239, 68, 68, 0.9);
    border: 1px solid #EF4444;
}

.notification.warning {
    background: rgba(245, 158, 11, 0.9);
    border: 1px solid #F59E0B;
}

.notification.info {
    background: rgba(59, 130, 246, 0.9);
    border: 1px solid #3B82F6;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #4B5563;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 12px;
        padding: 8px 12px;
        transform: translateY(-100px);
        text-align: center;
    }

    .notification.show {
        transform: translateY(0);
    }
}