/* Štýly pre formuláre - feropokus5 */
.form-page {
    max-width: 750px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eef2f6;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.form-header h1 {
    margin: 0;
    color: #005bb5;
    font-size: 1.8rem;
}

.back-link, .cancel-btn {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 6px;
    background: #f0f2f5;
    transition: all 0.2s ease;
    display: inline-block;
}

.back-link:hover, .cancel-btn:hover {
    background: #e2e6ea;
    color: #111;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label, .image-upload label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 0.95rem;
}

.add-article-form input[type="text"],
.add-article-form input[type="password"],
.add-article-form textarea,
.add-article-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #ccd0d5;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.add-article-form input[type="text"]:focus,
.add-article-form input[type="password"]:focus,
.add-article-form textarea:focus,
.add-article-form select:focus {
    outline: none;
    border-color: #0073e6;
    box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.15);
}

.add-article-form textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}

.image-upload-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.image-upload-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #334155;
}

.image-upload {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
}

.image-upload input[type="file"] {
    margin-bottom: 8px;
    display: block;
}

.image-preview-thumb {
    max-width: 120px;
    max-height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 8px;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.image-preview-thumb:hover {
    transform: scale(1.35);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.submit-btn {
    background-color: #0073e6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.submit-btn:hover {
    background-color: #005bb5;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Štýly pre správy a upozornenia */
.alert-box {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #e6f9ed;
    color: #1b7a3e;
    border: 1px solid #b7ebd0;
}

.alert-error {
    background-color: #fdebee;
    color: #b31e2f;
    border: 1px solid #f9ccd2;
}
