/* Reset en basis styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.navbar {
    background-color: #ffffff;
    color: #2c3e50;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-bottom: 1px solid #e8e8e8;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.navbar .logo {
    height: 44px; /* 10% groter dan 40px */
    width: auto;
    object-fit: contain;
}

.logo-link {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.logo-link:hover {
    opacity: 0.8;
    text-decoration: none !important;
    color: inherit;
    transform: scale(1.02);
}

.logo-link:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    text-decoration: none !important;
}

.logo-link:visited {
    color: inherit;
    text-decoration: none !important;
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links span {
    color: #7f8c8d;
}

/* Buttons */
.btn {
    display: inline-flex;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 40px;
    line-height: 1.2;
    vertical-align: middle;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

/* Login page styling */
.login-page {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    width: 90%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    margin-bottom: 25px;
    border-radius: 15px;
}

.login-form h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-form .login-header p {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 0;
}

.login-options {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Microsoft Login Button */
.btn-microsoft {
    width: 100%;
    background: #0078d4;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
}

.btn-microsoft:hover {
    background: #106ebe;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 120, 212, 0.4);
}

.btn-microsoft:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.3);
}

.btn-microsoft svg {
    flex-shrink: 0;
}

/* Login Divider */
.login-divider {
    text-align: center;
    position: relative;
    margin: 10px 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8e8e8;
}

.login-divider span {
    background: white;
    padding: 0 20px;
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
}

/* Traditional Login Form */
.traditional-login {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.traditional-login .form-group {
    margin-bottom: 0;
}

.traditional-login .form-group label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.traditional-login .form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.traditional-login .form-group input:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.traditional-login .btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 10px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.traditional-login .btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.traditional-login .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Responsive login */
@media (max-width: 768px) {
    .login-page {
        padding: 15px;
    }
    
    .login-form {
        padding: 30px 25px;
        border-radius: 15px;
    }
    
    .login-logo {
        width: 90%;
        max-width: 280px;
        height: auto;
        margin-bottom: 20px;
    }
    
    .login-form h1 {
        font-size: 1.8rem;
    }
    
    .btn-microsoft,
    .traditional-login .btn-primary {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-header h2 {
    color: #2c3e50;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 10px;
}

.stat-card p {
    color: #7f8c8d;
    font-weight: 500;
}

/* Filter buttons */
.filter-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.filter-btn {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #2c3e50;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-decoration: none;
    color: #2c3e50;
}

.filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #2980b9;
}

.filter-btn.active:hover {
    background: #2980b9;
    color: white;
}

.filter-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

.filter-label {
    font-size: 1rem;
    font-weight: 500;
    display: block;
}

/* Forms grid */
.forms-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.form-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.form-card:hover {
    transform: translateY(-2px);
}

.form-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.form-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-draft {
    background-color: #ffc107;
    color: #212529;
    border: 1px solid #ffb300;
}

.status-active {
    background-color: #28a745;
    color: white;
    border: 1px solid #1e7e34;
}

.status-completed {
    background-color: #6c757d;
    color: white;
    border: 1px solid #545b62;
}

.form-date {
    color: #7f8c8d;
    font-size: 14px;
    margin: 10px 0;
}

.form-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.form-actions .btn {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    flex: 1;
    max-width: 120px;
}

/* Form card actions specifiek */
.form-card .form-actions {
    margin-top: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.form-card .form-actions .btn {
    flex: 1;
    min-width: 70px;
    max-width: 100px;
    font-size: 12px;
    padding: 8px 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ondertekeningsstatistieken */
.signature-stats {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    font-size: 14px;
}

.stat-label {
    color: #7f8c8d;
    font-weight: 500;
}

.stat-value {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 13px;
}

.stat-value.signed {
    background-color: #d4edda;
    color: #155724;
}

.stat-value.pending {
    background-color: #fff3cd;
    color: #856404;
}

.stat-value.total {
    background-color: #e2e3e5;
    color: #495057;
}

/* Voortgangsbalk */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Geen ondertekenaars */
.no-signers {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #95a5a6;
    text-align: center;
}

.no-signers p {
    color: #7f8c8d;
    font-style: italic;
    margin: 0;
}

/* Statistieken grid voor form view */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

/* Voortgangsbalk met tekst */
.progress-bar {
    position: relative;
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #2c3e50;
    font-weight: 600;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.empty-state p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Editor */
.editor-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.editor-header h2 {
    color: #2c3e50;
    margin-bottom: 30px;
}

.template-info {
    background: #ecf0f1;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.template-info h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.template-info ul {
    list-style: none;
    padding: 0;
}

.template-info li {
    margin: 8px 0;
    padding: 5px 0;
}

.template-info code {
    background-color: #34495e;
    color: #ecf0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.variable-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.variable-category {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.variable-category h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
}

.variable-category ul {
    margin: 0;
    padding-left: 20px;
}

.variable-category li {
    margin: 8px 0;
    font-size: 14px;
}

.feature-info {
    background-color: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    margin: 20px 0;
}

.feature-info h4 {
    color: #27ae60;
    margin-bottom: 10px;
    font-size: 16px;
}

.feature-info p {
    margin: 0;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.5;
}

/* Form view */
.form-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.form-view-header h2 {
    color: #2c3e50;
}

.form-info {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-info p {
    margin: 8px 0;
}

.form-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-content h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.form-preview {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    background-color: #fafafa;
}

/* Signers */
.signers-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.signers-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.signers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.signer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.signer-info strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.signer-info span {
    color: #7f8c8d;
    font-size: 14px;
}

.status-signed {
    color: #27ae60;
    font-weight: 500;
}

.status-pending {
    color: #f39c12;
    font-weight: 500;
}

/* Ondertekenaar toelichting */
.signer-comment {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #3498db;
}

.signer-comment strong {
    color: #2c3e50;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.signer-comment p {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.signer-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.signer-actions .btn {
    flex: 1;
    min-width: 80px;
}

/* Send form */
.send-form-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.send-form-header p {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.send-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.email-info {
    background: #ecf0f1;
    padding: 20px;
    border-radius: 10px;
}

.email-info h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Sign form */
.sign-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.sign-form-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.sign-form-header p {
    color: #7f8c8d;
}

.form-content-preview {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #ddd;
}

.sign-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sign-form h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Messages */
.error {
    background-color: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Microsoft Login Error */
.microsoft-error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 5px solid #d63031;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.microsoft-error .error-header {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.microsoft-error .error-message {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 500;
}

.microsoft-error .error-solutions {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 8px;
}

.microsoft-error .error-solutions h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.microsoft-error .error-solutions ul {
    margin: 10px 0;
    padding-left: 20px;
}

.microsoft-error .error-solutions li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.microsoft-error .error-solutions p {
    margin: 15px 0 0 0;
    font-weight: 600;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 5px;
}

/* Admin Info Sectie */
.microsoft-error .admin-info {
    background: rgba(255, 255, 255, 0.25);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.microsoft-error .admin-info h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #fff;
    text-align: center;
}

.microsoft-error .admin-data {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.microsoft-error .data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.microsoft-error .data-item:last-child {
    border-bottom: none;
}

.microsoft-error .data-item strong {
    color: #fff;
    min-width: 150px;
}

.microsoft-error .data-item span {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
    max-width: 200px;
    text-align: right;
}

.microsoft-error .copy-instruction {
    text-align: center;
    margin: 15px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.microsoft-error .btn-copy {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.microsoft-error .btn-copy:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.microsoft-error .btn-copy:active {
    transform: translateY(0);
}

.success {
    background-color: #27ae60;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.text-center {
    text-align: center;
}

/* CKEditor styling */
.ck-editor__editable {
    min-height: 400px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.ck-editor__editable:focus {
    border-color: #3498db;
}

.ck.ck-editor__main > .ck-editor__editable {
    border-top: none;
}

.ck.ck-toolbar {
    border: 2px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
}

/* Admin styling */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h2 {
    color: #2c3e50;
}

.admin-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.admin-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
}

.admin-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.admin-card p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.admin-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.admin-form h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Users grid */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.user-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.user-card:hover {
    transform: translateY(-2px);
}

.user-info h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.user-info p {
    margin: 5px 0;
    font-size: 14px;
}

.role-admin {
    background-color: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.role-user {
    background-color: #95a5a6;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.user-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Templates grid */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.template-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.template-card:hover {
    transform: translateY(-2px);
}

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

.template-header h4 {
    color: #2c3e50;
    margin: 0;
}

.template-category {
    background-color: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.template-info p {
    margin: 8px 0;
    font-size: 14px;
}

.status-public {
    color: #27ae60;
    font-weight: 500;
}

.status-private {
    color: #f39c12;
    font-weight: 500;
}

.template-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Modal styling */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.template-preview {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    background-color: #fafafa;
    max-height: 400px;
    overflow-y: auto;
}

/* Recent activity */
.recent-activity {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.recent-activity h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.activity-type {
    font-size: 18px;
}

.activity-name {
    flex: 1;
    font-weight: 500;
}

.activity-date {
    color: #7f8c8d;
    font-size: 14px;
}

/* Button variants */
.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
}

.btn-info {
    background-color: #9b59b6;
    color: white;
}

.btn-info:hover {
    background-color: #8e44ad;
    transform: translateY(-1px);
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-warning:hover {
    background-color: #e67e22;
    transform: translateY(-1px);
}

/* Send form styling */
.add-signer-form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.add-signer-form h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.signers-list-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.signers-list-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.signers-table {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 200px;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.table-header > div {
    padding: 15px;
    border-right: 1px solid #dee2e6;
}

.table-header > div:last-child {
    border-right: none;
}

.table-body {
    min-height: 100px;
}

.signer-row {
    display: grid;
    grid-template-columns: 1fr 1fr 200px;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s ease;
}

.signer-row:hover {
    background-color: #f8f9fa;
}

.signer-row:last-child {
    border-bottom: none;
}

.signer-row > div {
    padding: 15px;
    border-right: 1px solid #dee2e6;
    display: flex;
    align-items: center;
}

.signer-row > div:last-child {
    border-right: none;
}

.col-actions {
    gap: 8px;
    justify-content: center;
}

.col-actions .btn {
    margin: 0 2px;
}

#messageContainer {
    margin-bottom: 20px;
}

#messageContainer .error,
#messageContainer .success {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .navbar h1 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .navbar .logo {
        height: 35px; /* 10% groter dan 32px */
    }
    
    .logo-link {
        gap: 8px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-buttons {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-btn {
        padding: 20px;
    }
    
    .filter-number {
        font-size: 2rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-card .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-card .form-actions .btn {
        max-width: none;
        width: 100%;
    }
    
    .signer-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .form-view-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* Send form responsive */
    .table-header,
    .signer-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .table-header > div,
    .signer-row > div {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        padding: 10px 15px;
    }
    
    .table-header > div:last-child,
    .signer-row > div:last-child {
        border-bottom: none;
    }
    
    .col-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .variable-categories {
        grid-template-columns: 1fr;
    }
}

/* 3D Onderteken knop styling - Nieuwe versie */
.btn-sign-3d {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: none;
    border-radius: 15px;
    padding: 25px 80px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 20px rgba(39, 174, 96, 0.3),
        0 5px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: inline-block;
    text-align: center;
    line-height: 1.3;
    min-width: 400px;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-sign-3d:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
    transform: translateY(-3px);
    box-shadow: 
        0 15px 30px rgba(39, 174, 96, 0.4),
        0 8px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-sign-3d:active {
    transform: translateY(-1px);
    box-shadow: 
        0 5px 10px rgba(39, 174, 96, 0.3),
        0 2px 5px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-sign-3d:focus {
    outline: 3px solid rgba(39, 174, 96, 0.5);
    outline-offset: 2px;
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .btn-sign-3d {
        min-width: 350px;
        padding: 22px 60px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .btn-sign-3d {
        min-width: 300px;
        padding: 20px 50px;
        font-size: 15px;
    }
}

/* Modal styling */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

/* Preview modal specifieke styling */
.preview-modal {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.preview-modal .modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.preview-modal .modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
}

.preview-modal .modal-body {
    padding: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.preview-modal .modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e8e8e8;
    text-align: right;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
    flex-shrink: 0;
}

.template-preview-content {
    padding: 30px;
    background: white;
    border: 1px solid #e8e8e8;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    flex: 1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.template-preview-content h1,
.template-preview-content h2,
.template-preview-content h3,
.template-preview-content h4,
.template-preview-content h5,
.template-preview-content h6 {
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 10px;
}

.template-preview-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.template-preview-content h2 {
    font-size: 1.5rem;
    color: #34495e;
}

.template-preview-content h3 {
    font-size: 1.25rem;
    color: #34495e;
}

.template-preview-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.template-preview-content ul,
.template-preview-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.template-preview-content li {
    margin-bottom: 8px;
}

.template-preview-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
}

.template-preview-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.template-preview-content th,
.template-preview-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.template-preview-content th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.template-preview-content tr:hover {
    background-color: #f8f9fa;
}

.template-preview-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.template-preview-content em {
    color: #555;
    font-style: italic;
}

.template-preview-content code {
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e74c3c;
    border: 1px solid #e9ecef;
}

.template-preview-content pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #e9ecef;
    margin: 15px 0;
}

.template-preview-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: #333;
}

/* Responsive preview modal */
@media (max-width: 768px) {
    .preview-modal {
        width: 98%;
        margin: 2% auto;
        max-height: 95vh;
    }
    
    .preview-modal .modal-header,
    .preview-modal .modal-footer {
        padding: 15px 20px;
    }
    
    .template-preview-content {
        padding: 20px;
        margin: 15px;
    }
    
    .template-preview-content h1 {
        font-size: 1.5rem;
    }
    
    .template-preview-content h2 {
        font-size: 1.25rem;
    }
}

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

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.close:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    margin-bottom: 15px;
    color: #555;
}

.link-container {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    align-items: center;
}

.link-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f8f9fa;
    color: #495057;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.link-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.link-note {
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
    margin-top: 10px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e8e8e8;
    text-align: right;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .link-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .link-input {
        margin-bottom: 10px;
    }
}
