/* Clean Light Mode Admin Interface */
.ddscroll-frontend-admin {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ddscroll-frontend-admin h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #23282d;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e5e5;
}

.ddscroll-frontend-admin h3 {
    font-size: 1.3rem;
    color: #23282d;
    margin-bottom: 1rem;
}

/* Form Styling */
.ddscroll-add-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #464646;
    font-size: 0.9rem;
}

.form-group textarea,
.form-group input[type="url"],
.form-group input[type="date"] {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    background: #fff;
}

.form-group textarea:focus,
.form-group input[type="url"]:focus,
.form-group input[type="date"]:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Announcements List */
.ddscroll-list {
    margin-top: 2rem;
}

.announcement-item {
    background: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.announcement-content {
    flex: 1;
}

.announcement-text {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #2c3338;
    line-height: 1.4;
}

.announcement-url,
.announcement-date {
    margin: 0.25rem 0;
    color: #646970;
    font-size: 0.9rem;
}

.announcement-url a {
    color: #2271b1;
    text-decoration: none;
}

.announcement-url a:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.button[type="submit"] {
    background: #2271b1;
    color: #fff;
}

.button[type="submit"]:hover {
    background: #135e96;
}

.button.delete-announcement {
    background: #dc3232;
    color: #fff;
    padding: 0.4rem 0.8rem;
}

.button.delete-announcement:hover {
    background: #b32d2d;
}

/* Messages */
.ddscroll-message {
    padding: 0.8rem 1rem;
    margin: 1rem 0;
    border-radius: 3px;
    font-size: 0.9rem;
}

.ddscroll-message.success {
    background: #edfaef;
    color: #1a7f37;
    border: 1px solid #95c9a0;
}

.ddscroll-message.error {
    background: #fcf0f1;
    color: #b32d2d;
    border: 1px solid #eea1a7;
}

/* Loading State */
.ddscroll-loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.ddscroll-loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .ddscroll-frontend-admin {
        margin: 1rem;
        padding: 1rem;
    }

    .ddscroll-add-form {
        padding: 1rem;
    }

    .announcement-item {
        flex-direction: column;
    }

    .announcement-actions {
        width: 100%;
        margin-top: 0.5rem;
    }

    .button.delete-announcement {
        width: 100%;
        justify-content: center;
    }
}
