/* Dark Theme Base Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Enhanced Container */
.container {
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    width: 95%;
    max-width: 500px;
    margin: 20px auto;
    border: 1px solid #333;
    animation: fadeInUp 0.5s ease-out;
}

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

/* Header Styles */
h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
    font-size: 1.8em;
    border-bottom: 2px solid #007BFF;
    padding-bottom: 15px;
}

/* User Info Bar */
.user-info {
    background: linear-gradient(135deg, #1a2a3a 0%, #1e3a4a 100%);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid #00ff88;
}

.user-info span {
    color: #00ff88;
    font-weight: 500;
}

.user-info .user-email {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
}

.logout-link {
    color: #dc3545;
    text-decoration: none;
    font-size: 0.9em;
    padding: 5px 10px;
    border-radius: 4px;
    background: rgba(220, 53, 69, 0.1);
    transition: all 0.3s ease;
}

.logout-link:hover {
    background: rgba(220, 53, 69, 0.2);
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 500;
    font-size: 1em;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: #333;
    color: #ffffff;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 1em;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
    line-height: 1.5;
}

.form-group input:disabled {
    background-color: #444;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Button Styles */
.btn {
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
    color: white;
    border: 1px solid #007BFF;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Message Styles */
.message {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.3);
}

.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
}

/* AI Preview Section */
.ai-preview {
    background: linear-gradient(135deg, #1a2a3a 0%, #1e3a4a 100%);
    border-left: 4px solid #00ff88;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ai-preview h3 {
    color: #00ff88;
    margin: 0 0 10px 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-preview h3::before {
    content: "🤖";
    font-size: 1.2em;
}

.ai-preview p {
    margin: 5px 0;
    color: #ccc;
}

.ai-preview .badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    margin-right: 8px;
    margin-bottom: 5px;
}

.badge.technical { background: #007BFF; }
.badge.billing { background: #28a745; }
.badge.feature { background: #ffc107; color: #000; }
.badge.account { background: #dc3545; }
.badge.inquiry { background: #6c757d; }

.sentiment-positive { color: #28a745; }
.sentiment-neutral { color: #ffc107; }
.sentiment-negative { color: #dc3545; }

/* Info Section */
.info-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #444;
    margin-top: 25px;
}

.info-section h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-section h3::before {
    content: "💡";
    font-size: 1.1em;
}

.info-section ul {
    margin: 0;
    padding-left: 20px;
    color: #ccc;
}

.info-section li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    height: 4px;
    border-radius: 2px;
    background: #444;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak {
    background: #dc3545;
    width: 33%;
}

.strength-medium {
    background: #ffc107;
    width: 66%;
}

.strength-strong {
    background: #28a745;
    width: 100%;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 25px;
        margin: 15px;
        width: calc(100% - 30px);
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .form-group input, .form-group textarea {
        padding: 12px;
    }
}