/* Base Styles */
:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --secondary: #8B5CF6;
    --accent: #EC4899;
    --danger: #F43F5E;
    --success: #10B981;
    --warning: #F59E0B;
    --info: #3B82F6;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--gray-800);
    line-height: 1.5;
}

/* Slide Themes */
.slide-container {
    transition: all 0.3s ease;
    max-width: 1024px;
    margin: 0 auto;
}

.theme-mckinsey {
    background-color: white;
    color: #1A365D;
}

.theme-mckinsey h1, 
.theme-mckinsey h2, 
.theme-mckinsey h3 {
    color: #1A365D;
    font-weight: 600;
}

.theme-bcg {
    background-color: #0066CC;
    color: white;
}

.theme-bcg h1, 
.theme-bcg h2, 
.theme-bcg h3 {
    color: white;
    font-weight: 600;
}

.theme-bain {
    background-color: #0033A0;
    color: white;
}

.theme-bain h1, 
.theme-bain h2, 
.theme-bain h3 {
    color: white;
    font-weight: 600;
}

/* Editor Layout */
.editor-container {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 1.5rem;
}

.slide-preview {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-height: 500px;
    padding: 2rem;
    position: relative;
}

.slide-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--gray-400);
    text-align: center;
}

/* UI Components */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.button-primary {
    background-color: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.button-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.button-secondary {
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--gray-300);
}

.button-secondary:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-400);
}

.button-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Form Elements */
.input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    transition: border-color 0.2s ease;
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    appearance: none;
}

/* Utilities */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

.rounded-xl {
    border-radius: 0.75rem;
}

/* Chart Container Styles */
.chart-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 1rem 0;
}

.chart-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Modal Styles */
.modal-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: 50;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 28rem;
    padding: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .editor-container {
        grid-template-columns: 1fr;
    }
}