/* Resume Builder Custom Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Tagify custom styling */
.tagify {
    border-radius: 0.5rem;
    border-color: #d1d5db;
    padding: 0.5rem;
}

.tagify__tag {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 1rem;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
}

.tagify__tag__removeBtn {
    color: white;
    margin-left: 0.5rem;
}

.tagify__tag__removeBtn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tagify__input {
    padding: 0.25rem;
}

/* Form inputs enhanced styling */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Button hover effects */
button {
    transition: all 0.2s ease;
    cursor: pointer;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Color theme buttons */
.color-theme {
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-theme:hover {
    transform: scale(1.1);
}

.color-theme.ring-2 {
    border-color: #1f2937;
}

/* Preview container styling */
#previewContainer {
    position: relative;
}

#previewContainer::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* Resume preview animations */
#resumePreview {
    transition: transform 0.3s ease;
}

/* Card hover effects */
.bg-white {
    transition: box-shadow 0.2s ease;
}

.bg-white:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Form sections spacing */
.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    #previewContainer {
        height: 500px !important;
    }
    
    #resumePreview {
        transform: scale(0.7) !important;
        transform-origin: top left;
    }
}

@media (max-width: 768px) {
    #previewContainer {
        height: 400px !important;
    }
    
    #resumePreview {
        transform: scale(0.5) !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Print styles for resume */
@media print {
    body * {
        visibility: hidden;
    }
    
    #resumePreview,
    #resumePreview * {
        visibility: visible;
    }
    
    #resumePreview {
        position: absolute;
        left: 0;
        top: 0;
        transform: none !important;
    }
}

/* Loading spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Template-specific styles */
.modern-template {
    background: white;
}

.classic-template {
    background: white;
}

.creative-template {
    background: white;
}

.minimalist-template {
    background: white;
}

/* Form validation styles */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

/* Improved file upload button */
input[type="file"] {
    display: none;
}

/* Enhanced section headers */
.bg-white h2 {
    position: relative;
    padding-left: 0.75rem;
}

.bg-white h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 2px;
}

/* Tooltip styles */
[title] {
    position: relative;
}

/* Info banner styles */
.bg-blue-100 {
    animation: slideDown 0.5s ease;
}

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

/* Grid layout improvements */
.grid {
    gap: 1.5rem;
}

/* Enhanced shadows for depth */
.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea {
    transition: all 0.2s ease;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Mobile optimization */
@media (max-width: 640px) {
    .text-3xl {
        font-size: 1.5rem;
    }
    
    .text-2xl {
        font-size: 1.25rem;
    }
    
    .text-xl {
        font-size: 1.125rem;
    }
    
    .px-4 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .py-6 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* Resume preview responsive sizing */
@media (min-width: 1536px) {
    #resumePreview {
        transform: scale(1.2);
    }
    
    #previewContainer {
        height: 800px !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Keep light theme for resume builder as it's meant for printing */
}

/* Animation for adding new sections */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bg-gray-50 {
    animation: fadeIn 0.3s ease;
}

/* Improved border styles */
.border-gray-200 {
    border-width: 1px;
}

.border-gray-300 {
    border-width: 1px;
}

/* Enhanced rounded corners */
.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

/* Improved spacing for form sections */
.p-6 {
    padding: 1.5rem;
}

.p-4 {
    padding: 1rem;
}

/* Better visual hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

/* Enhanced button groups */
.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

/* Improved form layout */
.gap-4 {
    gap: 1rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-2 {
    gap: 0.5rem;
}

/* Professional color palette */
:root {
    --color-primary: #2563eb;
    --color-secondary: #1e40af;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;
}

/* Accessibility improvements */
button:focus,
a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Improved contrast for better readability */
.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

/* Better spacing for lists */
ul, ol {
    padding-left: 1.25rem;
}

/* Enhanced form field groups */
.form-group {
    margin-bottom: 1rem;
}

/* Professional header styling */
header {
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Footer styling */
footer {
    margin-top: auto;
}

/* Utility classes for resume templates */
.resume-section {
    margin-bottom: 1.5rem;
}

.resume-heading {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Print-friendly styles */
@page {
    margin: 0;
    size: A4;
}
