:root {
    --primary-color: #5D5FEF;
    --primary-hover: #4A4ACC;
    --secondary-color: #34A853;
    --secondary-hover: #2D8F47;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --border-color: #e1e4e8;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --font-main: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --input-border-radius: 8px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: #F5F7FA;
    color: var(--dark-color);
    line-height: 1.6;
    padding-bottom: 50px;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.jumbotron {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 20px 0;
    padding: 30px !important;
    border: none;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 24px;
    font-size: 2.5rem;
    text-align: center;
    font-weight: 700;
}

h2, h5 {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--input-border-radius);
    font-size: 16px;
    transition: var(--transition);
    background-color: #fafbfc;
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(93, 95, 239, 0.2);
    background-color: white;
}

.btn {
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--input-border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(93, 95, 239, 0.3);
}

.btn-secondary {
    background-color: #e9ecef;
    color: #495057;
}

.btn-secondary:hover {
    background-color: #dee2e6;
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-file {
    display: inline-block;
    margin: 20px 0;
    text-align: center;
    font-size: 1.1rem;
    padding: 14px 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--input-border-radius);
    box-shadow: 0 4px 6px rgba(93, 95, 239, 0.2);
}

.btn-file:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(93, 95, 239, 0.3);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #495057;
}

.hidden {
    display: none;
}

.center {
    margin: 24px auto;
    width: 100%;
    max-width: 900px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    background-color: white;
    box-shadow: var(--box-shadow);
}

.centerBorderless {
    margin: 24px auto;
    width: 100%;
    max-width: 900px;
    padding: 16px;
}

.centerImage{
    padding: 0;
    margin: 24px auto;
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.centerCanvasMedium {
    padding: 0;
    margin: 0 auto;
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.centerCanvasLarge {
    padding: 0;
    margin: 0 auto;
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.canvas-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 24px auto;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: white;
    padding: 10px;
}

.caption {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-color);
}

#drawStatus {
    font-size: 16px;
    padding: 12px;
    background-color: rgba(93, 95, 239, 0.1);
    border-radius: var(--input-border-radius);
    margin: 16px 0;
}

textarea {
    display: block;
    margin: 16px auto;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--input-border-radius);
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
    background-color: #fafbfc;
    transition: var(--transition);
}

textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(93, 95, 239, 0.2);
    background-color: white;
}

#status, #drawStatus {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    margin: 16px 0;
}

#incrementalCurrentStep {
    display: block;
    text-align: center;
    margin: 16px 0;
    font-weight: 600;
    background-color: rgba(93, 95, 239, 0.1);
    padding: 12px;
    border-radius: var(--input-border-radius);
}

.alert {
    border-radius: var(--input-border-radius);
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-info {
    background-color: #e8f4fd;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.alert-primary {
    background-color: rgba(93, 95, 239, 0.1);
    border-color: rgba(93, 95, 239, 0.2);
    color: var(--primary-color);
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.text-center {
    text-align: center;
}

footer {
    background-color: white;
    padding: 24px 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

footer p {
    margin: 0;
    color: #6c757d;
}

/* Responsive tasarım için medya sorguları */
@media (max-width: 992px) {
    .jumbotron {
        padding: 24px !important;
    }
    
    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }
    
    .col {
        flex: 0 0 100%;
    }
    
    .center, .centerBorderless {
        width: 95%;
        padding: 16px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .btn-file {
        width: 100%;
    }

    .d-flex {
        flex-direction: column;
    }

    .d-flex .btn {
        margin-bottom: 12px;
        width: 100%;
    }

    .justify-content-between {
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .jumbotron {
        padding: 16px !important;
        margin: 12px 0;
        border-radius: 8px;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    
    .center {
        padding: 12px;
        margin: 16px auto;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .btn {
        padding: 10px 16px;
    }

    .btn-file {
        padding: 12px 16px;
        font-size: 1rem;
    }
}

/* Yeni eklenen stiller */
.text-primary {
    color: var(--primary-color) !important;
}

.logo {
    display: flex;
    align-items: center;
}

.logo i {
    filter: drop-shadow(0 2px 3px rgba(93, 95, 239, 0.3));
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    filter: drop-shadow(0 2px 3px rgba(93, 95, 239, 0.2));
}

.settings-panel {
    background-color: rgba(93, 95, 239, 0.05);
    border-radius: var(--input-border-radius);
    padding: 20px;
    border: 1px solid rgba(93, 95, 239, 0.1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.progress-status {
    font-size: 16px;
    padding: 12px;
    background-color: rgba(93, 95, 239, 0.1);
    border-radius: var(--input-border-radius);
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    line-height: 1.6;
}

.progress-status .status-item {
    width: 100%;
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(93, 95, 239, 0.1);
    font-weight: 600;
}

.progress-status .status-item:first-child {
    font-size: 18px;
    color: var(--primary-color);
}

.progress-status .status-item:last-child {
    border-bottom: none;
    color: #28a745;
}

.upload-btn {
    padding: 14px 30px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(93, 95, 239, 0.3);
}

.upload-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(93, 95, 239, 0.2);
}

.example-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.example-buttons .btn {
    min-width: 120px;
}

.action-buttons .btn,
.step-buttons .btn {
    min-width: 150px;
}

.keyboard-tip {
    background-color: #e8f4fd;
    border-left: 4px solid var(--primary-color);
}

/* Mobil düzenlemeler için ekstra stiller */
@media (max-width: 768px) {
    .example-buttons {
        flex-direction: column;
    }
    
    .example-buttons .btn {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .action-buttons .btn,
    .step-buttons .btn {
        width: 100%;
    }
    
    .step-buttons {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.2rem;
    }
    
    .upload-btn {
        padding: 12px 16px;
        font-size: 1rem;
        width: 100%;
    }
    
    .settings-panel {
        padding: 15px;
    }
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

.download-buttons {
    margin-top: 15px;
    margin-bottom: 15px;
}

.download-buttons .btn {
    min-width: 160px;
    transition: all 0.3s ease;
}

/* Mobil düzenlemeler için ekstra stiller */
@media (max-width: 768px) {
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .download-buttons .btn {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Yeni alt kısımdaki "Zaten adımlarınız oluşturuldu mu?" bölümü için stiller */
.saved-steps-bottom {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.saved-steps-bottom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.saved-steps-bottom h5 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Mobil ekranlar için daha iyi görünüm */
@media (max-width: 768px) {
    .saved-steps-bottom {
        padding: 15px !important;
    }
}