/* KreativKlar Platform - Missing CSS for modules */

/* Content Creator Module Styles */
.content-creator-main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.content-type-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.content-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    border-color: var(--primary-color);
}

.content-type-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Design Studio Module Styles */
.design-studio-main {
    display: flex;
    height: calc(100vh - 80px);
}

.design-toolbar {
    width: 250px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 1rem;
    overflow-y: auto;
}

.design-canvas {
    flex: 1;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.design-properties {
    width: 300px;
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
    padding: 1rem;
    overflow-y: auto;
}

.tool-group {
    margin-bottom: 1.5rem;
}

.tool-group h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tool-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.tool-button:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
}

.tool-button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Module-specific CSS improvements */

/* Touch-friendly improvements for all modules */
.module-container {
    position: relative;
    min-height: 100vh;
}

/* Better step indicators */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    min-width: 80px;
    text-align: center;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #e5e7eb;
    color: #6b7280;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #6366f1;
    color: white;
}

.step.completed .step-number {
    background: #10b981;
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.step.active .step-label {
    color: #6366f1;
}

.step.completed .step-label {
    color: #10b981;
}

/* Better form styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Enhanced button styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 44px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover:not(:disabled) {
    background: #5856eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #f3f4f6;
    color: #1f2937;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover:not(:disabled) {
    background: #e5e7eb;
    color: #111827;
}

.btn-success {
    background: #10b981;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
}

.btn-danger {
    background: #ef4444;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

/* Better card styling */
.card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.card.selectable {
    cursor: pointer;
}

.card.selected {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Loading states */
.loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #6366f1;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Error states */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.error-message i {
    margin-right: 0.5rem;
}

/* Success states */
.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.success-message i {
    margin-right: 0.5rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .design-studio-main {
        flex-direction: column;
        height: auto;
    }
    
    .design-toolbar,
    .design-properties {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    
    .content-type-selector {
        grid-template-columns: 1fr;
    }
    
    .step-indicator {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .step {
        min-width: auto;
        flex: 1;
    }
}

/* Accessibility improvements */
.btn:focus,
.tool-button:focus,
.content-type-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .module-card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .header,
    .nav,
    .quick-actions {
        display: none;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .module-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .btn, .no-print {
        display: none !important;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}

