/* MDBootstrap imports */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Algemene stijlen */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Navigatie */
.nav {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    height: 40px;
    text-decoration: none;
}

.nav-logo img {
    height: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: #f5f5f5;
    color: #007bff;
}

.nav-links .credits-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--light-color);
    border-radius: 4px;
    font-weight: 500;
    color: var(--dark-color);
    border: 1px solid #e0e0e0;
}

.nav-links .credits-info i {
    color: var(--warning-color);
}

.nav-links .credits-count {
    font-weight: bold;
    color: var(--primary-color);
}

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

/* Header */
header {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

header h1 {
    color: var(--dark-color);
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0;
}

header h1 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.credits-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--light-color);
    border-radius: 4px;
    font-size: 0.9rem;
    color: #666;
}

.credits-info i {
    color: var(--warning-color);
}

.credits-count {
    font-weight: bold;
    color: var(--primary-color);
}

/* Widgets Grid */
.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.widget-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.widget-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.widget-card h3 {
    color: var(--dark-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.widget-card p {
    color: #666;
    margin-bottom: 1rem;
}

.widget-type {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.widget-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Formulier */
.widget-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Knoppen */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #388E3C;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #1976D2;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #D32F2F;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background-color: #F57C00;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.empty-state h2 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.empty-state p {
    color: #666;
    margin-bottom: 2rem;
}

/* Create Widget Button */
.create-widget {
    text-align: center;
    margin-top: 2rem;
}

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

.alert-danger {
    background-color: #ffebee;
    color: var(--danger-color);
    border: 1px solid #ffcdd2;
}

.alert-success {
    background-color: #e8f5e9;
    color: var(--primary-color);
    border: 1px solid #c8e6c9;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .widget-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Auth pagina's */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 2rem;
    background-color: var(--light-color);
}

.auth-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-logo {
    width: 150px;
    margin-bottom: 1.5rem;
}

.auth-box h1 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.auth-box h1 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.auth-links {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.auth-links p {
    margin: 0;
    color: var(--dark-color);
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.page-title {
    display: none;
}

.page-title h1 {
    color: var(--dark-color);
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0;
}

.page-title h1 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stats-cards {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card i {
    font-size: 2rem;
    color: #007bff;
}

.stat-info h3 {
    margin: 0;
    font-size: 1rem;
    color: #6c757d;
}

.stat-info p {
    margin: 0.5rem 0 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #212529;
}

.chart-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-card h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: #212529;
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
}

/* Toast Notifications */
.toast {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none; /* Standaard verbergen */
}

.toast.show {
    display: block; /* Alleen tonen wanneer de show class wordt toegevoegd */
}

.toast-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.toast-body {
    padding: 1rem;
}

.toast-container {
    z-index: 1050;
}

/* Alert Styling */
#copyAlert {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    margin: 0;
    border-radius: 0;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease-in-out;
}

#copyAlert.show {
    opacity: 1;
    transform: translateY(0);
}

#copyAlert.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

#copyAlert .btn-close {
    color: #155724;
}

/* Widgets Sections */
.widgets-section {
    margin-bottom: 3rem;
}

.widgets-section h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

.widgets-section h2 i {
    margin-right: 0.5rem;
    color: #007bff;
}

/* Available Widgets Grid */
.available-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.available-widget-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
}

.available-widget-card:hover {
    transform: translateY(-5px);
}

.available-widget-card .widget-header {
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.available-widget-card .widget-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.credits-badge {
    background: #e9ecef;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #495057;
}

.credits-badge i {
    color: #ffc107;
    margin-right: 0.25rem;
}

.widget-preview {
    height: 200px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.widget-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.available-widget-card .widget-description {
    padding: 1rem;
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.widget-features {
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.widget-features h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #333;
}

.widget-features ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style: none;
}

.widget-features li {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.widget-features li i {
    color: #28a745;
    margin-right: 0.5rem;
}

.available-widget-card .widget-actions {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
}

.text-muted {
    color: #6c757d;
    font-size: 0.875rem;
}

.text-muted i {
    margin-right: 0.25rem;
} 