/* User Authentication Styles */

.cam-user-auth-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cam-auth-tabs {
    border-bottom: 2px solid #e1e1e1;
}

.cam-tab-btn {
    transition: all 0.3s ease;
    position: relative;
}

.cam-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #18a34a;
}

.cam-auth-form {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group input:focus {
    outline: none;
    border-color: #18a34a !important;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Dashboard Styles */

.cam-user-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dashboard-header {
    color: #333;
    border: none !important;
}

.wallet-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none !important;
}

.wallet-section h2 {
    color: white !important;
}

.wallet-section > div > div {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
    transition: transform 0.3s ease;
}

.wallet-section > div > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.quick-actions button {
    transition: all 0.3s ease;
}

.quick-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.quick-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.ad-card {
    transition: all 0.3s ease;
    border: 1px solid #e1e1e1 !important;
}

.ad-card:hover {
    border-color: #18a34a !important;
}

.ad-image {
    position: relative;
    overflow: hidden;
}

.ad-image img {
    transition: transform 0.3s ease;
}

.ad-card:hover .ad-image img {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cam-user-auth-container {
        margin: 20px;
        padding: 15px;
    }
    
    .cam-user-dashboard {
        padding: 15px;
    }
    
    .quick-actions {
        text-align: center;
    }
    
    .quick-actions button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .ads-grid {
        grid-template-columns: 1fr !important;
    }
    
    .wallet-section > div {
        grid-template-columns: 1fr !important;
    }
}

/* Loading States */
.cam-loading {
    opacity: 0.6;
    pointer-events: none;
}

.cam-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #0073aa;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Form Validation */
.form-group.error input {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.form-group.error label {
    color: #dc3545 !important;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

/* Success States */
.form-group.success input {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}
