/* Custom styles for EZ-CV Resume Builder */
/* Optimized for 1920x1200 display with compact design */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    background-color: #f5f5f5;
}

/* Navbar customization */
.navbar {
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.1rem;
}

.btn-sm {
    font-size: 11px;
    padding: 0.25rem 0.5rem;
}

/* Sticky sidebar */
.sticky-sidebar {
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.list-group-item {
    font-size: 11px;
    padding: 0.5rem 0.75rem;
    border-left: 3px solid transparent;
}

.list-group-item.active {
    border-left-color: var(--primary-color);
    background-color: #e7f1ff;
    color: var(--primary-color);
}

.list-group-item:hover {
    background-color: #f0f0f0;
}

.list-group-item i {
    margin-right: 0.5rem;
    width: 16px;
}

/* Card styling */
.card {
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.card-header {
    padding: 0.5rem 1rem;
}

.card-header h5 {
    font-size: 1rem;
    margin: 0;
}

.card-header i {
    margin-right: 0.5rem;
}

.card-body {
    padding: 1rem;
}

/* Form controls */
.form-label {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #495057;
}

.form-control,
.form-select {
    font-size: 11px;
    padding: 0.375rem 0.5rem;
    border-radius: 0.25rem;
    color: #642600 !important; /* Dark green text */
}

.form-control-sm {
    font-size: 11px;
    padding: 0.25rem 0.5rem;
    color: #006400 !important; /* Dark green text */
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Dynamic sections */
.dynamic-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.dynamic-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.dynamic-item-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.btn-remove {
    font-size: 11px;
    padding: 0.125rem 0.5rem;
}

/* Array field containers */
.array-field-container {
    margin-top: 0.5rem;
}

.array-field-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.array-field-item input {
    flex: 1;
}

.array-field-item .btn-sm {
    padding: 0.25rem 0.5rem;
}

/* Compact row spacing */
.row.g-2 {
    gap: 0.5rem;
}

/* Checkbox styling */
.form-check {
    margin-top: 0.5rem;
}

.form-check-input {
    margin-top: 0.3em;
}

.form-check-label {
    font-size: 11px;
}

/* Scrollbar styling */
::-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;
}

/* Responsive adjustments */
@media (max-width: 1600px) {
    body {
        font-size: 11px;
    }
    
    .form-label {
        font-size: 10px;
    }
}

/* Print styles for PDF export */
@media print {
    .navbar,
    .sticky-sidebar,
    .btn,
    button {
        display: none !important;
    }
    
    .col-md-10 {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Utility classes */
.text-xs {
    font-size: 10px;
}

.text-sm {
    font-size: 11px;
}

.gap-1 {
    gap: 0.25rem;
}

/* File and Export menu button styling - 50% larger */
#fileMenuButton,
#exportMenuButton {
    font-size: 18px !important; /* 50% larger than default 12px */
    padding: 0.75rem 1.125rem !important; /* 50% larger padding */
    color: #fff !important;
}

#fileMenuButton:hover,
#exportMenuButton:hover {
    color: #ddd !important;
    background-color: #222 !important;
}

#fileMenuButton i,
#exportMenuButton i {
    font-size: 21px !important; /* 50% larger icons */
    margin-right: 0.5rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1050;
}

.toast {
    font-size: 12px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

/* Section highlighting on scroll */
section:target {
    animation: highlight 2s ease-in-out;
}

@keyframes highlight {
    0% {
        background-color: transparent;
    }
    50% {
        background-color: #fff3cd;
    }
    100% {
        background-color: transparent;
    }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-size: 12px;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Badge styling */
.badge {
    font-size: 10px;
    padding: 0.25em 0.5em;
}

/* Input group adjustments */
.input-group-text {
    font-size: 11px;
    padding: 0.375rem 0.5rem;
}

/* Date inputs */
input[type="date"] {
    font-size: 11px;
}

/* Textarea adjustments */
textarea.form-control {
    resize: vertical;
    min-height: 60px;
}

/* Collapse animations */
.collapsing {
    transition: height 0.2s ease;
}

/* Grid adjustments for compact layout */
@media (min-width: 1920px) {
    .container-fluid {
        max-width: 1900px;
    }
}
