:root {
    --bg-color: #1e1e2e;
    --text-color: #cdd6f4;
    --primary-color: #89b4fa;
    --secondary-color: #f38ba8;
    --accent-color: #a6e3a1;
    --editor-bg: #11111b;
    --card-bg: #313244;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.app-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 2rem;
    justify-content: center;
    
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
}

main {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.editor-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.editor-pane {
    background-color: var(--editor-bg);
    border-radius: 8px;
    overflow: hidden;
}

.editor-pane h2 {
    margin: 0;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.code-editor {
    height: 300px;
    font-family: 'Fira Code', monospace;
}

.apply-button {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.apply-button:hover {
    transform: translateY(-2px);
}

.error-message {
    color: var(--secondary-color);
    font-weight: 600;
}

.preview-container {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
}

.card {
    width: 300px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.image-container {
    position: relative;
    height: 300px;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mentor-badge, .availability {
    position: absolute;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 12px;
}

.mentor-badge {
    top: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #00a86b;
    border-radius: 15px;
}

.mentor-badge::before {
    content: "★";
    margin-right: 5px;
}

.availability {
    bottom: 10px;
    left: 10px;
    background-color: #1e3a8a;
    color: white;
    border-radius: 5px;
}

.availability::before {
    content: "⚡";
    margin-right: 5px;
}

.info {
    padding: 15px;
}

.name {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: bold;
}

.flag {
    vertical-align: middle;
    margin-left: 5px;
}

.job-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #666;
    display: flex;
    align-items: center;
}

.job-title svg {
    margin-right: 5px;
}

.stats {
    display: flex;
    justify-content: space-between;
    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
}

.stat {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
}

.center-wrapper {
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}