.crop-app-container {
max-width: 100%;
margin: 0 auto;
background: repeating-linear-gradient(45deg, #dbdbdb, #dbdbdb 10px, #f0f8ff calc(10px + 1px), #f0f8ff 20px, #dbdbdb calc(20px + 1px));
padding: 20px 10px;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
min-height:400px;
display: flex;
flex-direction: column;
justify-content: space-evenly;
gap:15px; 
}
.settings-bar {
background: #f8f9fa;
padding: 10px 15px;
border-radius: 8px;
border: 1px solid #e9ecef;
display: flex;
align-items: center;
justify-content: flex-start;
gap: 15px;
flex-wrap: wrap;
}
.settings-group {
display: flex;
align-items: center;
gap: 10px;
}
.crop-app-container label {
font-size: 0.9rem;
font-weight: 600;
color: #555;
margin: 0;
}
.crop-app-container select, 
.crop-app-container input[type="number"] {
padding: 8px 12px;
border: 1px solid #ccc;
border-radius: 6px;
font-size: 0.95rem;
outline: none;
background: #fff;
}
.crop-app-container input[type="number"] {
width: 80px;
}
.crop-app-container select:focus, 
.crop-app-container input[type="number"]:focus {
border-color: #007bff;
}
.size-info {
font-size: 0.85rem;
color: #666;
white-space: nowrap;
}
.size-info.error {
color: #dc3545;
font-weight: bold;
}
.upload-area {
width: 100%;
}
.file-input-wrapper {
position: relative;
overflow: hidden;
display: inline-block;
width: 100%;
}
.btn-upload {
border: 2px dashed #ccc;
color: #555;
background-color: white;
padding: 15px;
border-radius: 8px;
font-size: 1rem;
font-weight: bold;
width: 100%;
cursor: pointer;
text-align: center;
transition: all 0.2s;
box-sizing: border-box;
}
.btn-upload:hover {
border-color: #007bff;
color: #007bff;
background: #f0f8ff;
}
.file-input-wrapper input[type=file] {
font-size: 100px;
position: absolute;
left: 0;
top: 0;
opacity: 0;
cursor: pointer;
width: 100%;
height: 100%;
}
.editor-wrapper {
display: none;
width: 100%;
}
.editor-container {
width: 100%;
height: 50vh;
min-height: 300px;
border-radius: 8px;
overflow: hidden;
background-color: #ffffff;
background-image: 
linear-gradient(45deg, #eee 25%, transparent 25%), 
linear-gradient(-45deg, #eee 25%, transparent 25%), 
linear-gradient(45deg, transparent 75%, #eee 75%), 
linear-gradient(-45deg, transparent 75%, #eee 75%);
background-size: 20px 20px;
background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}
.crop-app-container img {
display: block;
max-width: 100%;
}
/* Кнопки действий */
.actions-row {
display: none; /* Скрыто до загрузки фото */
flex-direction: column;
gap: 15px;
}
.btn-primary {
background-color: #007bff;
color: white;
border: none;
padding: 12px 24px;
border-radius: 8px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
width: 100%;
max-width: 300px;
margin: 0 auto;
transition: background 0.2s;
display: flex;
justify-content: center;
align-items: center;
}
.btn-primary:hover {
background-color: #0056b3;
}
.btn-primary:disabled {
background-color: #606163;
cursor: not-allowed;
}
.preview-section {
display: none;
flex-direction: column;
gap: 15px;
padding: 15px;
background: #f8f9fa;
border-radius: 8px;
border: 1px solid #e9ecef;
}
.preview-box {
display: flex;
justify-content: center;
align-items: center;
background-color: #fff;
background-image: 
linear-gradient(45deg, #eee 25%, transparent 25%), 
linear-gradient(-45deg, #eee 25%, transparent 25%), 
linear-gradient(45deg, transparent 75%, #eee 75%), 
linear-gradient(-45deg, transparent 75%, #eee 75%);
background-size: 20px 20px;
background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
border-radius: 6px;
padding: 10px;
min-height: 100px;
}
.preview-img {
max-width: 100%;
max-height: 300px;
object-fit: contain;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.download-controls {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid #e0e0e0;
}
.format-select {
padding: 8px;
border-radius: 6px;
border: 1px solid #ccc;
width: 150px;
}
.btn-success {
background-color: #28a745;
}
.btn-success:hover {
background-color: #218838;
}