/* Üldine stiil, inspireeritud näitest */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fefefe;
    color: #2c2c2c;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.header {
    width: 100%;
    max-width: 800px;
    margin-bottom: 30px;
}

.lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.lang-switcher a {
    text-decoration: none;
    font-size: 1rem;
    color: #8B4513;
    font-weight: 500;
}

.lang-switcher a:hover {
    text-decoration: underline;
}

.lang-switcher a.active {
    color: #1a1a1a;
    font-weight: bold;
    cursor: default;
    text-decoration: none;
}

.main-container {
    width: 100%;
    max-width: 800px;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

h1 {
    margin-top: 0;
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 10px;
}

p {
    color: #666;
    margin-bottom: 25px;
}

/* Faili valiku nupu stiil */
.custom-file-button {
    background-color: #8B4513;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: background-color 0.2s;
    border: none;
}

.custom-file-button:hover {
    background-color: #6e370f;
}

/* Lõikamise ala */
.cropper-container {
    margin-top: 20px;
    width: 100%;
    max-height: 60vh;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 8px;
}

#image-to-crop {
    display: block;
    max-width: 100%;
}

/* Tagasiside teade */
#loading-feedback {
    margin-top: 15px;
    color: #555;
    font-style: italic;
}

/* Nuppude konteiner */
.actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Üldine nupu stiil */
.actions button {
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Spetsiifilised nupustiilid */
#crop-button {
    background-color: #28a745; /* Roheline */
}

#crop-button:hover:not(:disabled) {
    background-color: #218838;
}

#reset-button {
    background-color: #6c757d; /* Hall */
}

#reset-button:hover:not(:disabled) {
    background-color: #5a6268;
}

/* Info kasti stiil */
.info-box {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
    text-align: left;
    color: #666;
}

.info-box h2 {
    font-size: 1.4rem;
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.info-box ul {
    list-style-position: inside;
    padding-left: 0;
}

.info-box li {
    margin-bottom: 10px;
}