/* Modern Dark Mode Styling */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #e8e8e8;
    color: #2c2c2c;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 320px;
    height: 100vh;
    background-color: #f5f5f5;
    padding: 30px 20px;
    overflow-y: auto;
    z-index: 100;
    border-right: 1px solid #d0d0d0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

.title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #2c2c2c;
    text-align: center;
    letter-spacing: 1px;
}

/* Section Styling */
.section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d8d8d8;
}

.section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #707070;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Button Styling */
.btn {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 10px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0.3px;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #007bff;
    color: #ffffff;
    border: none;
}

.btn-primary:hover:not(:disabled) {
    background-color: #0056b3;
}

.btn-success {
    background-color: #28a745;
    color: #ffffff;
    border: none;
}

.btn-success:hover:not(:disabled) {
    background-color: #218838;
}

.btn-danger {
    background-color: #e74c3c;
    color: #ffffff;
    border: none;
}

.btn-danger:hover:not(:disabled) {
    background-color: #f25c4c;
}

.btn-secondary {
    background-color: #6f42c1;
    color: #ffffff;
    border: none;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #5a32a3;
}

/* Canvas Container */
#canvas-container {
    position: fixed;
    left: 320px;
    top: 0;
    width: calc(100vw - 320px);
    height: 100vh;
    background-color: #e8e8e8;
}

#canvas-container canvas {
    display: block;
}

/* Credits */
.credits {
    margin-top: 40px;
    padding-top: 20px;
    font-size: 12px;
    color: #888888;
    text-align: center;
    line-height: 1.6;
}

.credits a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.credits a:hover {
    color: #5ca3f5;
}

/* Ko-fi Widget */
.ko-fi {
    position: relative;
    z-index: 200;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 40vh;
        border-right: none;
        border-bottom: 1px solid #2a2d3a;
    }

    #canvas-container {
        left: 0;
        top: 40vh;
        width: 100vw;
        height: 60vh;
    }

    .title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .section {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
}