:root {
    --primary: #c2151c;
    --primary-dark: #9e1116;
    --background: #1a1a1a;
    --text: #ffffff;
    --card-bg: #262626;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
}

header {
    background-color: var(--background);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text);
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-radius: 4px;
    margin-left: 5px;
    position: relative;
}

.logo-icon::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 2px;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.btn {
    background-color: var(--primary);
    color: var(--text);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: var(--primary-dark);
}

.btn:disabled {
    background-color: #555;
    cursor: not-allowed;
}

.btn-icon {
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-icon {
    margin-left: auto;
}

.upload-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.file-upload label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.file-status {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.7rem;
    border-radius: var(--border-radius);
}

.status-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.status-text {
    flex: 1;
}

.hide {
    display: none;
}

.progress-container {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 10px;
    margin-top: 1rem;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s;
}

.preview-container {
    margin-top: 2rem;
}

.preview-window {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1rem;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

#preview-frame {
    width: 100%;
    height: 400px;
    border: none;
}

.actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* New styles for profile picture preview */
.pic-preview-container {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

#profile-pic-preview {
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

#profile-pic-preview:hover {
    transform: scale(1.05);
}

/* New styles for the profile keywords textarea */
.input-container {
    width: 100%;
}

.profile-textarea {
    width: 100%;
    min-height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--border-radius);
    color: var(--text);
    padding: 0.7rem;
    resize: vertical;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.profile-textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(194, 21, 28, 0.3);
}

.profile-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid var(--primary);
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

.api-key-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.api-key-container label {
    display: block;
    margin-bottom: 0.5rem;
}

.api-key-container input {
    width: 100%;
    padding: 0.7rem;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: none;
    font-family: monospace;
}

.info-text {
    margin-top: 0.5rem;
    color: #aaa;
    font-size: 0.9rem;
}

/* Media query for responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .actions button {
        width: 100%;
    }
    
    #preview-frame {
        height: 300px;
    }
}