﻿
.resizer-page {
    background: #f6faf7;
    min-height: 100vh;
    padding: 25px 0 60px;
}

.resizer-breadcrumb {
    font-size: 12px;
    color: #738276;
    margin-bottom: 25px;
}

    .resizer-breadcrumb a {
        color: #087a35;
        text-decoration: none;
    }

.resizer-header {
    text-align: center;
    margin: 0 auto 30px;
    max-width: 750px;
}

    .resizer-header span {
        color: #087a35;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 1px;
    }

    .resizer-header h1 {
        color: #163e25;
        font-size: clamp(25px, 4vw, 36px);
        font-weight: 800;
        margin: 12px 0;
    }

    .resizer-header p {
        color: #708075;
        font-size: 14px;
    }

.resizer-card,
.resizer-info {
    max-width: 850px;
    margin: auto;
    background: white;
    padding: 28px;
    border: 1px solid #e0eae2;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

.resizer-upload {
    padding: 45px 20px;
    text-align: center;
    border: 2px dashed #a4d4ae;
    background: #f2faf4;
    border-radius: 15px;
    cursor: pointer;
}

    .resizer-upload.dragging,
    .resizer-upload:hover {
        background: #e9f7ed;
        border-color: #087a35;
    }

    .resizer-upload:focus-visible {
        outline: 3px solid #087a35;
        outline-offset: 3px;
    }

.upload-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.resizer-upload h2 {
    font-size: 21px;
    font-weight: 800;
    color: #194429;
}

.resizer-upload p,
.resizer-upload small {
    color: #728076;
    font-size: 13px;
}

.resizer-upload small {
    display: block;
    margin-top: 14px;
}

.choose-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 11px 24px;
    color: white;
    background: #087a35;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
}

.resizer-preview {
    text-align: center;
    background: #f8faf8;
    padding: 18px;
    border-radius: 14px;
    margin-top: 20px;
}

    .resizer-preview img {
        max-width: 100%;
        max-height: 340px;
        object-fit: contain;
        border-radius: 9px;
    }

    .resizer-preview p {
        font-size: 12px;
        color: #718076;
        margin-top: 12px;
        overflow-wrap: anywhere;
    }

.resize-controls {
    margin-top: 25px;
}

    .resize-controls h2,
    .resizer-result h2,
    .resizer-info h2 {
        color: #184328;
        font-size: 20px;
        font-weight: 800;
        margin-bottom: 18px;
    }

.resize-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

    .resize-input-grid label {
        display: block;
        color: #31533b;
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .resize-input-grid input[type="number"],
    .resize-input-grid select {
        width: 100%;
        padding: 12px;
        border: 1px solid #d7e5da;
        border-radius: 10px;
        background: white;
        outline-color: #087a35;
    }

    .resize-input-grid input[type="range"] {
        width: 100%;
        accent-color: #087a35;
    }

.ratio-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #31533b;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 25px;
}

    .ratio-label input {
        accent-color: #087a35;
    }

.resize-presets {
    margin-bottom: 24px;
}

    .resize-presets > span {
        display: block;
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 12px;
    }

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .preset-buttons button {
        padding: 9px 16px;
        border: 1px solid #b5d9bf;
        border-radius: 9px;
        color: #087a35;
        background: #f3faf5;
        font-size: 12px;
        cursor: pointer;
    }

        .preset-buttons button:hover {
            background: #dff2e4;
        }

.resize-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.resizer-primary,
.resizer-secondary,
.resizer-download {
    padding: 13px 23px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
}

.resizer-primary,
.resizer-download {
    background: #087a35;
    border: 1px solid #087a35;
    color: white;
}

    .resizer-primary:disabled {
        opacity: .6;
    }

.resizer-secondary {
    background: white;
    color: #087a35;
    border: 1px solid #a4d1af;
}

.resizer-result {
    border-top: 1px solid #e2eee5;
    margin-top: 28px;
    padding-top: 25px;
}

.resizer-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

    .resizer-stats > div {
        background: #f0f9f2;
        border-radius: 11px;
        padding: 16px 8px;
        text-align: center;
    }

    .resizer-stats span {
        display: block;
        color: #728076;
        font-size: 11px;
        margin-bottom: 8px;
    }

    .resizer-stats strong {
        color: #087a35;
        font-size: 15px;
        overflow-wrap: anywhere;
    }

.resizer-download {
    display: inline-block;
    text-decoration: none;
    margin-top: 20px;
}

    .resizer-download:hover {
        background: #075a2a;
        color: white;
    }

.resizer-message {
    margin: 16px 0 0;
    color: #aa392c;
    font-size: 13px;
}

.resizer-info {
    margin-top: 30px;
}

    .resizer-info h2:not(:first-child) {
        margin-top: 25px;
    }

    .resizer-info p {
        color: #728076;
        line-height: 1.8;
        font-size: 14px;
    }

.resizer-page [hidden] {
    display: none !important;
}

@media (max-width: 575px) {
    .resizer-page {
        padding: 15px 0 40px;
    }

    .resizer-card,
    .resizer-info {
        padding: 17px 13px;
    }

    .resize-input-grid {
        gap: 10px;
    }

    .resizer-stats {
        gap: 6px;
    }

        .resizer-stats strong {
            font-size: 12px;
        }

    .resize-actions {
        flex-direction: column;
    }

    .resizer-primary,
    .resizer-secondary,
    .resizer-download {
        width: 100%;
    }
}
