body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f2f2f7;
    margin: 0;
    padding: 0;
    color: #1c1c1e;
}

header {
    background: #fff;
    color: #1c1c1e;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

header a {
    color: #007AFF;
    text-decoration: none;
    font-weight: 600;
}

.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
}

.card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

form {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-field {
    margin-right: 1.8rem;
}

form label {
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
    color: #3a3a3c;
}

form input[type="text"],
form input[type="file"],
form textarea,
form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d1d6;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    margin-top: 5px;
}

form input:focus,
form textarea:focus,
form select:focus {
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
    outline: none;
}

form .form-control,
form .form-select,
form .btn {
    height: 100%;
    min-height: 48px;
}

form .btn {
    margin-top: 5px;
}

button,
a.btn {
    background: #007AFF;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
}

a.btn-danger {
    background: #dc3545;
}

button:hover,
.btn:hover {
    background: #0063cc;
}

button:active,
.btn:active {
    transform: scale(0.97);
}

.preview, .gallery {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.img-thumbnail {
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gallery img {
    border-radius: 10px;
    height: 120px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.textarea {
    resize: none;
    height: 120px;
    overflow-y: auto;
}

.info-row {
    margin-bottom: 5px;
}

.title {
    font-weight: bold;
}

.gallery-item {
    position: relative;
    display: inline-block;
}

.remove-gallery-item {
    all: unset;
    position: absolute;
    top: 0;
    right: 0;

    width: 20px;
    height: 20px;

    background-color: #dc3545;
    color: #fff;

    border: none;
    border-radius: 100%;

    font-size: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 10;
}

.remove-gallery-item:hover {
    background-color: #bb2d3b;
}
