:root {
    --primary-color: #4F46E5;
    --secondary-color: #818CF8;
    --bg-color: #F3F4F6;
    --text-color: #1F2937;
    --accent-color: #C7D2FE;
    --error-color: #EF4444;
    --success-color: #10B981;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
}

.resume-form-container {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.resume-form-container::-webkit-scrollbar {
    width: 6px;
}

.resume-form-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.resume-form-container::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 6px;
}

.resume-preview {
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.template-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.template-item:hover {
    transform: translateY(-5px);
}

.template-item.active {
    border: 2px solid var(--primary-color);
}

.color-item {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-item:hover {
    transform: scale(1.2);
}

.color-item.active {
    border: 2px solid white;
    outline: 2px solid var(--text-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
}

.form-input {
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--accent-color);
}

.ai-suggestion {
    background-color: #EFF6FF;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.ai-suggestion:hover {
    background-color: #DBEAFE;
}

.drag-handle {
    cursor: move;
}

#ai-assistant-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

#ai-assistant-panel.active {
    transform: translateY(0);
}

.template-preview {
    transition: all 0.3s ease;
}

/* Responsive Design & Visual Enhancements */
.resume-preview-container {
    /* Remove fixed scaling for true responsiveness */
    /* transform: scale(0.9); /* Removed */
    /* transform-origin: top left; /* Removed */
    width: 100%; /* Allow container to adapt */
    max-width: 800px; /* Set a max-width for larger screens */
    margin: 2rem auto; /* Center the preview */
}

.resume-content {
    padding: 2rem; /* Add padding inside the resume */
    font-size: 10pt; /* Base font size */
}

.resume-header .contact-info {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    gap: 0.5rem 1.5rem; /* Row and column gap */
    justify-content: center; /* Center items */
    margin-top: 0.5rem;
    font-size: 9pt;
}

.resume-header .contact-info span {
    display: inline-flex; /* Align icon and text */
    align-items: center;
    gap: 0.3rem;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .resume-content {
        padding: 1.5rem;
        font-size: 9pt;
    }
    .resume-header {
        text-align: center; /* Center header text on mobile */
    }
    .resume-header #preview-photo-container {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1rem;
    }
     .resume-header .contact-info {
        justify-content: center; /* Center contact info */
        font-size: 8pt;
        gap: 0.3rem 1rem;
    }
    .resume-main {
        flex-direction: column; /* Stack columns on mobile */
    }
    .resume-main > div {
        width: 100%; /* Make columns full width */
        margin-bottom: 1.5rem;
    }
    h2 {
         font-size: 1.1rem; /* Adjust heading sizes */
    }
    h3 {
         font-size: 1rem;
    }
}

/* Desktop specific styles */
@media (min-width: 769px) {
    .resume-content {
        padding: 2.5rem;
        font-size: 10pt;
    }
     .resume-header .contact-info {
        justify-content: space-between; /* Space out contact info on desktop */
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    animation: spin 1s ease infinite;
}

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

/* Add styles for the chips */
.skill-chip, .language-chip, .hobby-chip {
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Ensure Tailwind classes are available if not using CDN */
/* If not using CDN, you would include Tailwind build output here */

