* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background-color: #222222;
    color: white;
    font-family: Arial, sans-serif;
}

@font-face {
    font-family: LolBeautfort;
    src: url('../fonts/BeaufortforLOL-Regular.ttf') format('truetype');
}
@font-face {
    font-family: LolBeautfortBold;
    src: url('../fonts/BeaufortforLOL-Bold.ttf') format('truetype');
}

/* Main Grid Layout */
.app-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-areas: "augments controls champions";
    gap: 20px;
    height: 100vh;
    overflow: hidden;
}

.augments-section {
    grid-area: augments;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.controls-section {
    grid-area: controls;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    overflow-y: auto;
}

.champions-section {
    grid-area: champions;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #444;
}

.tab-btn {
    flex: 1;
    padding: 10px 15px;
    background-color: #555;
    color: #ccc;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s;
}

.tab-btn:hover {
    background-color: #666;
    color: white;
}

.tab-btn.active {
    background-color: #007bff;
    color: white;
}

.tab-btn:first-child {
    border-right: 1px solid #333;
}

/* Search Sections */
.search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

#championSearchInput, #arenaItemSearchInput, #itemSearchInput {
    max-width: 160px;
}

.search-input {
    height: 35px;
    width: 100%;
    border-radius: 10px;
    font-size: 16px;
    padding: 0 10px;
    border: none;
}

.clear-button {
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    user-select: none;
}

/* Lists */
.list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: center;
    background-color: #333333;
    border-radius: 8px;
    padding: 10px;
    height: calc(100vh - 140px);
    overflow-y: auto;
    gap: 8px;
}

.augmentButton {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 120px;
    height: 150px;
    justify-content: center;
    border-radius: 8px;
    filter: drop-shadow(0 0 0.1rem gray);
    background-color: #020E10;
    padding: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.augmentButton span {
    font-size: 14px;
}

.augmentButton:hover {
    transform: scale(1.05);
}

.augmentButton img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin: 0 auto 8px auto;
}

.augmentButton span {
    font-size: 12px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Controls Section */
.image-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.slider {
    -webkit-appearance: none;
    height: 15px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    width: 100%;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: royalblue;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: royalblue;
    cursor: pointer;
    border: none;
}

.sliderForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.sliderForm label {
    font-weight: bold;
    font-size: 14px;
}

.form-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 800px;
}

.form-controls-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-controls-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-row-horizontal .form-row {
    margin: 0;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    font-weight: bold;
    font-size: 14px;
}

.form-row select,
.form-row input {
    padding: 8px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
}

#descriptionInput,
#titleInput {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: none;
    font-family: inherit;
    resize: vertical;
}

#titleInput {
    height: 35px;
}

#descriptionInput {
    height: 80px;
}


.image-container {
    position: relative;
    right: 100px;
}

/* Drag and Drop Styles */
#canvasContainer {
    position: relative;
    display: inline-block;
}

.drop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 123, 255, 0.1);
    border: 3px dashed #007bff;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.drop-text {
    color: #007bff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

#canvasContainer.drag-over .drop-overlay {
    display: flex;
}

#imageOutput {
    display: block;
}

/* Vertical sliders */
.vertical-slider-container {
    position: absolute;
    right: -120px;
    top: 65px;
    height: 450px;
    width: 200px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

.vertical-slider-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: center;
    width: 200px;
}

.vertical-slider {
    writing-mode: bt-lr; /* IE */
    writing-mode: vertical-lr; /* Standard */
    -webkit-appearance: slider-vertical;
    width: 25px;
    height: 375px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    margin: 15px 0;
    border-radius: 5px;
}

.vertical-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: royalblue;
    cursor: pointer;
}

.vertical-slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: royalblue;
    cursor: pointer;
    border: none;
}

.vertical-slider-label {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 14px;
    font-weight: bold;
    margin: 10px 0;
    color: white;
    text-align: center;
}

.image-container {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.vertical-controls-row {
    position: absolute;
    bottom: -60px;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.vertical-controls-row .form-row {
    flex: 1;
    min-width: 0;
}

.vertical-controls-row .form-row label {
    font-size: 12px;
    margin-bottom: 4px;
}

.vertical-controls-row .form-row select {
    font-size: 12px;
    padding: 4px;
    width: 100%;
}


/* Responsive Design */
@media (max-width: 1200px) {
    .app-container {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 15px;
    }
    
    .vertical-slider-container {
        right: -120px;
        width: 100px;
    }
}

@media (max-width: 992px) {
    .app-container {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "controls"
            "augments"
            "champions";
        gap: 20px;
    }
    
    .vertical-slider-container {
        position: static;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: center;
        margin-top: 15px;
    }
    
    .vertical-slider-group {
        height: auto;
        margin: 0 15px;
    }
    
    .vertical-slider {
        writing-mode: horizontal-tb;
        -webkit-appearance: none;
        width: 150px;
        height: 15px;
    }
    
    .vertical-slider-label {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        margin: 0 0 5px 0;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .app-container {
        gap: 15px;
    }
    
    .search-input {
        max-width: 200px;
    }
    
    .list {
        max-height: 50vh;
    }
    
    .augmentButton {
        width: 100px;
        height: 130px;
    }
    
    .augmentButton img {
        width: 60px;
        height: 60px;
    }
    
    .vertical-slider-container {
        flex-direction: column;
        align-items: center;
    }
    
    .vertical-slider-group {
        margin: 10px 0;
    }
    
    .vertical-slider {
        width: 200px;
    }
}
