/* Modern ve Hoş Tasarım */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    min-height: 100vh;
    margin-bottom: 60px;
    padding-bottom: 2rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #ffd700 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.welcome-card {
    text-align: center;
    color: white;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.welcome-title i {
    margin-right: 0.5rem;
    color: #ffd700;
}

.welcome-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Main Container */
.main-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Form Card */
.form-card, .result-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-header-custom {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 50%, #ffd700 100%);
    padding: 1.5rem;
    color: white;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title i {
    font-size: 1.3rem;
}

.card-body-custom {
    padding: 2rem;
}

/* Form Elements */
.form-group-custom {
    margin-bottom: 1.5rem;
}

.form-label-custom {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label-custom i {
    color: #ffd700;
    font-size: 1rem;
}

.form-control-custom {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--dark-color);
}

.form-control-custom:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.form-control-custom::placeholder {
    color: #9ca3af;
}

.form-control-custom[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #e5e7eb;
    border-radius: 5px;
    outline: none;
    padding: 0;
    margin: 1rem 0;
}

.form-control-custom[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #ffd700;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.form-control-custom[type="range"]::-webkit-slider-thumb:hover {
    background: #ffed4e;
    transform: scale(1.1);
}

.form-control-custom[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ffd700;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.form-control-custom[type="range"]::-moz-range-thumb:hover {
    background: #ffed4e;
    transform: scale(1.1);
}

#qualityValue {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
}

.textarea-custom {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox Styling */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #ffd700;
}

.checkbox-label {
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
}

.checkbox-label i {
    color: #ffd700;
}

.patlangac-input {
    margin-top: 1rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* File Input */
.file-input {
    margin-top: 0.5rem;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--light-color);
    border-radius: 8px;
    margin-top: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.file-preview i {
    color: #ffd700;
    font-size: 1.2rem;
}

/* Buttons */
.btn-create, .btn-download {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.btn-create {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 50%, #ffd700 100%);
    color: white;
    min-width: 200px;
}

.btn-create:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #ffd700 100%);
}

.btn-create:active {
    transform: translateY(0);
}

.btn-create i {
    font-size: 1.2rem;
}

.btn-download {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
    min-width: 180px;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-download:active {
    transform: translateY(0);
}

.btn-download i {
    font-size: 1.1rem;
}

/* Result Images */
.result-images {
    display: block;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.result-images img {
   
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.result-images img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .card-body-custom {
        padding: 1.5rem;
    }
    
    .result-images {
        grid-template-columns: 1fr;
    }
    
    .btn-create, .btn-download {
        width: 100%;
        justify-content: center;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* Focus States */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, 
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(255, 215, 0, 0.5);
}

/* Navbar Customization */
.navbar {
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
}

.navbar-brand img {
    max-height: 70px;
}

.navbar-light .navbar-brand,
.navbar-light .navbar-toggler {
    color: white;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Footer */
.footer {
    background: var(--dark-color) !important;
    color: white !important;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer a {
    color: #ffd700;
    text-decoration: none;
}

.footer a:hover {
    color: #ffed4e;
    text-decoration: underline;
}
