/* Modern Responsive CSS til Oplevelser */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 20px;
    background: #f7f7f7;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 960px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
    gap: 15px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 14px;
    background: #495057;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    font-weight: 500;
}

.btn-sm:hover {
    background: #212529;
}

h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
}

h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Status Badge */
.status-badge {
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    background: #e9ecef;
    color: #495057;
}

.status-badge.online {
    background: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background: #fff3cd;
    color: #856404;
}

.status-badge.error {
    background: #f8d7da;
    color: #721c24;
}

/* Card Styling */
.card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

/* Forms */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.flex-1 { flex: 1; min-width: 200px; }
.flex-2 { flex: 2; min-width: 280px; }

label {
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #495057;
}

input[type="text"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    background: #fff;
    font-family: inherit;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2d7ef7;
}

button {
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #2d7ef7;
    color: white;
    font-weight: 500;
    transition: background 0.2s, transform 0.1s;
}

button:hover {
    background: #1f5fcc;
}

button:active {
    transform: scale(0.99);
}

button#saveBtn {
    width: 100%;
    padding: 14px;
    font-size: 17px;
    margin-top: 8px;
}

.feedback {
    margin-top: 12px;
    font-weight: 500;
    font-size: 0.95rem;
}
.feedback.success { color: #28a745; }
.feedback.error { color: #dc3545; }

/* Filter Section */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.button-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-filter {
    background: #f1f3f5;
    color: #495057;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 6px;
}

.btn-filter:hover {
    background: #e9ecef;
}

.btn-filter.active {
    background: #2d7ef7;
    color: white;
}

.select-filter {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    width: auto;
}

/* Oplevelser Grid */
.oplevelser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
}

.oplevelse-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s, box-shadow 0.15s;
    border-top: 4px solid #2d7ef7;
}

.oplevelse-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.oplevelse-card.status-oenskeliste { border-top-color: #6f42c1; }
.oplevelse-card.status-planlagt { border-top-color: #fd7e14; }
.oplevelse-card.status-gennemfoert { border-top-color: #28a745; }

.card-top {
    margin-bottom: 12px;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-kategori { background: #e7f5ff; color: #1971c2; }
.badge-status { background: #f8f9fa; border: 1px solid #dee2e6; color: #495057; }

.meta-info {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.meta-info span {
    display: block;
    margin-bottom: 2px;
}

.card-desc {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 15px;
    white-space: pre-wrap;
    word-break: break-word;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f3f5;
    padding-top: 12px;
    margin-top: auto;
    gap: 8px;
}

.status-select-sm {
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 6px;
    width: auto;
}

.action-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-edit {
    background: #f1f3f5;
    color: #1971c2;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid #d0ebff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.btn-edit:hover {
    background: #1971c2;
    color: white;
}

.btn-delete {
    background: transparent;
    color: #dc3545;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid #ffc9c9;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.btn-delete:hover {
    background: #dc3545;
    color: white;
}

/* Modal Dialog */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: white;
    width: 100%;
    max-width: 620px;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.modal-header h2 {
    margin: 0;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #868e96;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-close:hover {
    color: #212529;
    background: #f1f3f5;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.btn-cancel {
    background: #f1f3f5;
    color: #495057;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-size: 15px;
}

.btn-cancel:hover {
    background: #e9ecef;
}

#saveEditBtn {
    padding: 10px 20px;
    font-size: 15px;
}

/* Særlige farver til kategorier */
.badge-kategori-kaerlighed {
    background: #ffe3e3;
    color: #c92a2a;
    border: 1px solid #ffc9c9;
}

.badge-kategori-familie {
    background: #fff3bf;
    color: #d9480f;
    border: 1px solid #ffe066;
}

@media screen and (max-width: 768px) {
    body { padding: 12px; }
    .form-row { flex-direction: column; gap: 0; }
    .filter-section { flex-direction: column; align-items: stretch; }
    .filter-group { flex-direction: column; align-items: flex-start; }
    .card-actions { flex-direction: column; align-items: stretch; }
    .action-buttons { justify-content: flex-end; }
}
