/* Common Styles - Shared across all pages */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 32px 40px;
    width: 100%;
}

h1 {
    color: #333;
    margin-bottom: 6px;
    font-size: 2em;
}

h2 {
    color: #333;
    margin-bottom: 6px;
    font-size: 1.5em;
}

.subtitle {
    color: #666;
    margin-bottom: 24px;
    font-size: 0.95em;
}

/* Buttons */
button {
    border: none;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
}

.btn-primary {
    background: #4f46e5;
    color: white;
}

.btn-primary:hover {
    background: #4338ca;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-outline {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-outline:hover {
    background: #f3f4f6;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
    gap: 8px;
}

.tab {
    padding: 12px 20px;
    font-size: 0.95em;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    bottom: -2px;
    text-decoration: none;
    display: inline-block;
}

.tab:hover {
    color: #4f46e5;
    background: #f9fafb;
}

.tab.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

/* Form Elements */
label {
    font-size: 0.9em;
    font-weight: 500;
    color: #444;
    margin-bottom: 4px;
}

input[type="text"],
select {
    padding: 9px 10px;
    border-radius: 6px;
    border: 1px solid #d0d7de;
    font-size: 0.95em;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

/* Image Section */
.image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.image-preview {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    font-size: 0.85em;
    color: #9ca3af;
}

/* Empty State */
.empty-state {
    text-align: center;
    color: #6b7280;
    padding: 60px 20px;
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 1.05em;
}

/* Mobile Responsiveness */
@media (max-width: 720px) {
    .container {
        padding: 24px 20px;
    }

    .tabs {
        overflow-x: auto;
    }
}