:root {
    --primary: #d97706; /* A vibrant amber/gold for Punjabi culture accents */
    --primary-hover: #b45309;
    --success: #10b981;
    --success-hover: #059669;
    --bg-light: #f9fafb; /* Clean minimal white/gray background */
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --panel-bg: #ffffff;
    --panel-border: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Baloo Paaji 2', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    position: relative;
    padding: 2rem 0;
}

/* Very subtle background pattern for minimalism */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image: radial-gradient(var(--panel-border) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

header .tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Layout Wrapper */
.content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

/* Clean White Panel */
.glass-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

.dp-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.workspace {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Canvas Area */
.canvas-container {
    width: 100%;
    position: relative;
    aspect-ratio: 1/1;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed #cbd5e1;
    transition: all 0.3s ease;
}

.canvas-container:hover {
    border-color: var(--primary);
    background: #f8fafc;
}

canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 2;
}

.upload-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s;
    font-size: 1.1rem;
    font-weight: 500;
}

.upload-placeholder svg {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* Controls Area */
.controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.slider-group label {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
    margin-top: 0.5rem;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: transform 0.1s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

input[type="range"]:disabled::-webkit-slider-thumb {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    font-family: inherit;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(217, 119, 6, 0.2), 0 2px 4px -1px rgba(217, 119, 6, 0.1);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(217, 119, 6, 0.25), 0 4px 6px -1px rgba(217, 119, 6, 0.15);
}

.btn-success {
    background: var(--success);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
}

.btn-success:hover {
    background: var(--success-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(16, 185, 129, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--text-muted);
    border: 2px solid #e2e8f0;
    width: 100%;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--text-dark);
}

.actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
}

.actions .btn-success {
    flex: 2;
}

.actions .btn-outline {
    flex: 1;
}

/* Article & Typography for Shahmukhi */
.info-section {
    padding: 2.5rem;
}

.shahmukhi-text {
    font-family: 'Noto Nastaliq Urdu', serif;
    line-height: 2.2;
    color: var(--text-dark);
}

.article-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.shahmukhi-text p {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    text-align: justify;
}

.event-details {
    background: #f8fafc;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.event-details h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.event-details ul {
    list-style-type: none;
    padding: 0;
}

.event-details li {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    display: flex;
    gap: 0.5rem;
}

.event-details strong {
    color: var(--primary);
}

.hashtags {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-end;
}

.hashtags a {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-family: 'Baloo Paaji 2', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
}

.hashtags a:hover {
    background: #bae6fd;
    color: #0c4a6e;
}

/* Responsive */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }
    
    .glass-panel {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .shahmukhi-text p {
        font-size: 1.1rem;
    }
    
    .actions {
        flex-direction: column;
    }
}
