/* --- ALGEMENE STIJL --- */
body {
    font-family: Inter, Arial, sans-serif;
    margin: 0;
    background: #111;
    color: #eee;
}

/* --- HEADER --- */
header {
    padding: 12px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header img {
    max-width: 100%;
    height: auto;
    max-height: 35px;
}

/* --- MAIN --- */
main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 12px;
}

.section {
    background: #151515;
    padding: 12px;
    border-radius: 8px;
    flex: 1;
}

#dropzone {
    min-height: 220px;
    border: 2px dashed #333;
    border-radius: 8px;
    padding: 12px;
    position: relative;
}

.figure-container {
    display: flex;
    flex-direction: row;
    padding: 8px;
    margin: 6px;
}

#p5holder canvas {
    display: block;
    max-width: 100%;
}

/* --- CONTROLS --- */
.controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.controls button,
.button-style {
    display: inline-block;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #555;
    color: #eee;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.8em;
    line-height: 1;
    transition: background-color 0.2s, opacity 0.2s;
}

.controls button:hover,
.button-style:hover {
    background-color: #666;
}

.disabled-style {
    cursor: not-allowed;
    opacity: 0.4;
    pointer-events: none;
}

/* --- EXPORT STATUS --- */
#export-status-container {
    display: inline-block;
    margin-left: 15px;
    vertical-align: top;
}

#waveform-mini {
    height: 40px;
    margin-bottom: 5px;
}

#exportProgress {
    width: 250px;
    height: 10px;
}

#exportStatusText {
    display: block;
    font-size: 0.8em;
    color: #555;
    min-width: 250px;
}

#shareUrl {
    margin-left: 10px;
    font-size: 0.9em;
    max-width: 300px;
    display: inline-block;
}

/* --- WEBMENTION --- */
.webmention-section {
    background: #151515;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.webmention-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    color: #ccc;
    margin-bottom: 4px;
}

.webmention-form input {
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background: #222;
    color: #eee;
    font-size: 1em;
    width: 70%;
    box-sizing: border-box;
}

.webmention-form input:focus {
    outline: none;
    border-color: #777;
    box-shadow: 0 0 5px rgba(119, 119, 119, 0.5);
}

.webmention-form button[type="submit"] {
    align-self: flex-start;
    margin-top: 8px;
}

.status-message {
    margin-top: 12px;
    font-size: 0.9em;
    color: #aaa;
}

/* --- NOTIFICATIONS --- */
.notifications-section {
    background: #151515;
    padding: 16px;
    border-radius: 8px;
}

.notifications-section h3 {
    margin-top: 0;
    color: #eee;
    font-size: 1.2em;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

.notifications-section button {
    margin-bottom: 12px;
}

.mentions-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #333;
    border-radius: 5px;
}

.mentions-list p {
    margin: 0;
    color: #bbb;
}

.mention-item-wrapper {
    border-bottom: 1px dashed #333; 
    padding: 8px 0 0;
    margin-bottom: 12px;
}

.mention-url {
    font-size: 0.9em;
    color: #aaa;
    word-break: break-all;
}

.mention-date {
    font-size: 0.7em;
    color: #777;
}

/* --- SOUND FIGURE ANIMATIE --- */
sound-figure {
    transition: transform 0.2s ease-in-out;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .webmention-section,
    .notifications-section {
        padding: 12px;
    }

    .webmention-form input {
        font-size: 0.9em;
    }

    .mentions-list {
        max-height: 200px;
    }
}
