/* Ask Sponsors - App-specifieke stijlen */

:root {
    --color-primary: #009cde;
    --color-primary-dark: #0080b8;
    --color-primary-light: #e6f4fb;
}

/* Auth */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.auth-card h1 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--color-primary);
}

/* Navbar */
.navbar {
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    height: 56px;
    gap: 1.5rem;
}

.navbar-brand a {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    gap: 0.5rem;
}

.navbar-item {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background 0.15s;
}

.navbar-item:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.navbar-end {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-user {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.btn:hover {
    background: #f5f5f5;
}

.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-info {
    background: var(--color-primary-light);
    border: 1px solid #b8e2f8;
    color: #0c5460;
}

/* Forms */
.form-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    max-width: 800px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 156, 222, 0.2);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group-half {
    flex: 1;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #666;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.table th, .table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #555;
}

.table tr:last-child td {
    border-bottom: none;
}

.row-hidden {
    opacity: 0.5;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-draft { background: #ffc107; color: #333; }
.badge-active { background: #28a745; color: #fff; }
.badge-closed { background: #6c757d; color: #fff; }
.badge-admin { background: var(--color-primary); color: #fff; }
.badge-owner { background: #6f42c1; color: #fff; }
.badge-inactive { background: #dc3545; color: #fff; }

/* Stats bar */
.stats-bar {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Public header */
.public-header {
    background: var(--color-primary);
    padding: 1rem 0;
}

.public-logo {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

/* Public footer */
.public-footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
    color: #999;
    border-top: 1px solid #eee;
}

/* Landing hero */
.landing-hero {
    text-align: center;
    padding: 3rem 0;
}

.landing-hero h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.landing-hero p {
    font-size: 1.2rem;
    color: #666;
}

/* Campaign grid */
.campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.campaign-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
}

.campaign-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.campaign-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.campaign-card-placeholder {
    height: 200px;
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-primary);
    padding: 1rem;
    text-align: center;
}

.campaign-card-body {
    padding: 1rem;
}

.campaign-card-body h2 {
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
}

.campaign-card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Progress bar */
.progress-bar-container {
    background: #e9ecef;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.progress-bar-large {
    height: 12px;
    border-radius: 6px;
}

.progress-bar {
    background: var(--color-primary);
    height: 100%;
    border-radius: inherit;
    transition: width 0.3s;
    min-width: 0;
}

/* Campaign detail */
.campaign-detail {
    max-width: 800px;
    margin: 0 auto;
}

.campaign-hero img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.campaign-progress {
    margin: 1.5rem 0;
}

.campaign-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.campaign-description {
    margin: 2rem 0;
    line-height: 1.7;
}

.campaign-description img {
    max-width: 100%;
    border-radius: 4px;
}

/* Donation form */
.donation-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.donation-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

/* Donations list */
.donations-list {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.donation-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.donation-item:last-child {
    border-bottom: none;
}

.donation-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.donation-amount {
    margin-left: auto;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.donation-org {
    color: #666;
}

.donation-message {
    margin: 0.5rem 0;
    color: #555;
    font-style: italic;
}

.donation-image img {
    max-width: 200px;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.donation-date {
    font-size: 0.8rem;
    color: #999;
}

/* Confirmation */
.confirmation-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40vh;
}

.confirmation-card {
    text-align: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 3rem;
    max-width: 500px;
}

.confirmation-card h1 {
    color: #28a745;
    margin-bottom: 1rem;
}

/* Error page */
.error-page {
    text-align: center;
    padding: 4rem;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--color-primary);
    margin: 0;
}

/* Quill editor */
#editor-container {
    background: #fff;
    border-radius: 4px;
}

#editor {
    min-height: 200px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        height: auto;
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .navbar-menu {
        order: 3;
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .campaign-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stats-bar {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .landing-hero h1 {
        font-size: 1.8rem;
    }

    .campaign-grid {
        grid-template-columns: 1fr;
    }
}
