/* Ana Değişkenler */
:root {
    --spotify-green: #1DB954;
    --spotify-dark: #191414;
    --border-radius-lg: 20px;
    --border-radius-md: 15px;
    --border-radius-sm: 8px;
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.1);
}

/* Template Bildirim Sistemi */
.template-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1DB954 0%, #1ed760 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(29, 185, 84, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 350px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.template-notification.show {
    transform: translateX(0);
}

.template-notification.success {
    background: linear-gradient(135deg, #1DB954 0%, #1ed760 100%);
    box-shadow: 0 8px 25px rgba(29, 185, 84, 0.3);
}

.template-notification.warning {
    background: linear-gradient(135deg, #ff9500 0%, #ffcc00 100%);
    box-shadow: 0 8px 25px rgba(255, 149, 0, 0.3);
}

.template-notification.error {
    background: linear-gradient(135deg, #ff3b30 0%, #ff6b6b 100%);
    box-shadow: 0 8px 25px rgba(255, 59, 48, 0.3);
}

.template-notification.info {
    background: linear-gradient(135deg, #007aff 0%, #5ac8fa 100%);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.template-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.template-notification .notification-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.template-notification .notification-message {
    flex: 1;
    line-height: 1.4;
}

.template-notification .notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    opacity: 0.8;
}

.template-notification .notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.1);
}

/* Mobile için bildirim pozisyonu */
@media (max-width: 768px) {
    .template-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .template-notification.show {
        transform: translateY(0);
    }
}

/* Form Alan Hata Vurgulama */
.form-field-error {
    border: 2px solid #ff3b30 !important;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.2) !important;
    background-color: rgba(255, 59, 48, 0.05) !important;
    transition: all 0.3s ease;
}

.form-field-error:focus {
    border-color: #ff3b30 !important;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.3) !important;
}

/* Form Alan Titreşim Animasyonu */
.form-field-shake {
    animation: formFieldShake 0.6s ease-in-out;
}

@keyframes formFieldShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Form Alan Hover Efekti */
.form-field-error:hover {
    background-color: rgba(255, 59, 48, 0.08) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.25) !important;
}

/* Form Alan Label Vurgulama */
.form-field-error + label,
label + .form-field-error {
    color: #ff3b30 !important;
    font-weight: 600;
}

/* Form Alan Placeholder Vurgulama */
.form-field-error::placeholder {
    color: #ff6b6b !important;
    opacity: 0.8;
}

/* Form Alan Icon Vurgulama */
.form-field-error + .input-group-text,
.input-group .form-field-error + .input-group-text {
    border-color: #ff3b30 !important;
    background-color: rgba(255, 59, 48, 0.1) !important;
    color: #ff3b30 !important;
}

/* Select Element Vurgulama */
.form-field-error select {
    border-color: #ff3b30 !important;
    background-color: rgba(255, 59, 48, 0.05) !important;
}

.form-field-error select:focus {
    border-color: #ff3b30 !important;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.3) !important;
}

/* Textarea Element Vurgulama */
.form-field-error textarea {
    border-color: #ff3b30 !important;
    background-color: rgba(255, 59, 48, 0.05) !important;
}

.form-field-error textarea:focus {
    border-color: #ff3b30 !important;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.3) !important;
}

/* File Input Vurgulama */
.form-field-error input[type="file"] {
    border-color: #ff3b30 !important;
    background-color: rgba(255, 59, 48, 0.05) !important;
}

.form-field-error input[type="file"]:focus {
    border-color: #ff3b30 !important;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.3) !important;
}

/* Input Group Vurgulama */
.input-group .form-field-error {
    border-color: #ff3b30 !important;
}

.input-group .form-field-error + .input-group-text {
    border-color: #ff3b30 !important;
    background-color: rgba(255, 59, 48, 0.1) !important;
    color: #ff3b30 !important;
}

/* Element Card Vurgulama */
.element-card .form-field-error {
    border-color: #ff3b30 !important;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.2) !important;
}

.element-card .form-field-error .element-title {
    color: #ff3b30 !important;
    font-weight: 600;
}

/* Form Container Vurgulama */
.form-container .form-field-error {
    border-color: #ff3b30 !important;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.2) !important;
}

/* Canvas Element Hata Vurgulama */
.canvas-element-error {
    stroke: #ff3b30 !important;
    stroke-width: 3 !important;
    stroke-dasharray: 5, 5 !important;
    animation: canvasElementPulse 2s ease-in-out infinite;
}

@keyframes canvasElementPulse {
    0%, 100% { 
        stroke-width: 3;
        stroke-opacity: 1;
    }
    50% { 
        stroke-width: 5;
        stroke-opacity: 0.7;
    }
}

/* Canvas Container Vurgulama */
.canvas-container.error,
.customer-canvas-container.error {
    border: 2px solid #ff3b30 !important;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.2) !important;
    animation: canvasContainerShake 0.6s ease-in-out;
}

@keyframes canvasContainerShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

/* Canvas Element Selection Vurgulama */
.canvas-element-selected {
    stroke: #1DB954 !important;
    stroke-width: 2 !important;
    stroke-dasharray: none !important;
}

/* Canvas Element Hover Vurgulama */
.canvas-element-hover {
    stroke: #ff9500 !important;
    stroke-width: 2 !important;
    stroke-dasharray: none !important;
    cursor: pointer;
}

/* Genel Stil */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, var(--spotify-green) 0%, var(--spotify-dark) 100%);
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.design-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    margin-top: 20px;
    margin-bottom: 20px;
    /* Form container'ı merkezlemek için */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Başlık Bölümü */
.header-section {
    background: linear-gradient(45deg, var(--spotify-green), #1ed760);
    color: white;
    padding: 30px;
    text-align: center;
    margin: -20px -20px 30px -20px;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.header-section h1 {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 2.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header-section p {
    opacity: 0.9;
    margin: 0;
    font-size: 1.1rem;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading i {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--spotify-green);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animasyonlar */
@keyframes pointLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-3px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Print için gizle */
@media print {
    body * {
        visibility: hidden;
    }
    .mockup-preview, .mockup-preview * {
        visibility: visible;
    }
    .mockup-preview {
        position: absolute;
        left: 0;
        top: 0;
        width: 20cm;
        height: 20cm;
        box-shadow: none;
    }
}
