/* Basis styling voor Schilderadviezen.nl */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a5f;
    --primary-light: #2c5f8d;
    --secondary-color: #f39c12;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f5f7fa;
    --white: #ffffff;
    --border-color: #e1e8ed;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Login Page Styling */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 100vh;
}

.login-container {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

.login-header i {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.9;
}

.login-header h1 {
    font-size: 2em;
    margin-bottom: 5px;
}

.login-header p {
    opacity: 0.9;
    font-size: 1.1em;
}

/* Tabs */
.tabs {
    display: flex;
    background: var(--bg-color);
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    background: rgba(0,0,0,0.03);
}

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

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-footer {
    padding: 20px 30px;
    background: var(--bg-color);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9em;
}

.login-footer i {
    color: var(--primary-color);
    margin-right: 5px;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group label i {
    color: var(--primary-color);
    margin-right: 5px;
    width: 18px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 91, 141, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 0.85em;
}

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

.form-footer {
    margin-top: 20px;
    text-align: center;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9em;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn i {
    margin-right: 8px;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 91, 141, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: var(--white);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: var(--white);
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

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

/* Alerts */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert i {
    margin-right: 10px;
    font-size: 1.2em;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--secondary-color);
}

/* Dashboard Styling */
.dashboard {
    background: var(--bg-color);
    min-height: 100vh;
}

.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.navbar-brand i {
    margin-right: 10px;
    font-size: 1.5em;
}

.navbar-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.navbar-item {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-item:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.navbar-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--white);
    font-weight: 600;
}

.navbar-item i {
    margin-right: 5px;
}

/* Hamburger Menu Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-weight: 600;
    color: var(--text-color);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-color);
}

.card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    font-weight: 700;
}

.card-body {
    padding: 10px 0;
}

/* Grid */
.grid {
    display: grid;
    gap: 25px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-nieuw {
    background: #e3f2fd;
    color: #1976d2;
}

.status-betaald {
    background: #e8f5e9;
    color: #388e3c;
}

.status-ingepland {
    background: #fff3e0;
    color: #f57c00;
}

.status-in_uitvoering {
    background: #e3f2fd;
    color: #1976d2;
}

.status-inspectie_uitgevoerd {
    background: #f3e5f5;
    color: #7b1fa2;
}

.status-afgerond {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* Responsive */
@media (max-width: 768px) {
    .login-header h1 {
        font-size: 1.5em;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-container {
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 0 15px;
        position: relative;
    }
    
    .navbar-brand {
        font-size: 1.1em;
    }
    
    .navbar-brand i {
        font-size: 1.2em;
    }
    
    .navbar-toggle {
        display: flex;
        order: 2;
    }
    
    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        display: none;
        margin-top: 10px;
        border-radius: 0 0 8px 8px;
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-menu a {
        width: 100%;
        text-align: left;
        padding: 12px 20px;
        border-radius: 0;
    }
    
    .navbar-menu a:hover {
        background: var(--bg-color);
    }
    
    .user-menu {
        order: 3;
        gap: 10px;
    }
    
    .user-name {
        display: none;
    }
    
    .user-menu .btn {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* Header */
header {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 5px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Main content */
main {
    background: var(--white);
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.intro {
    margin-bottom: 40px;
}

.intro h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Pricing box */
.pricing {
    display: flex;
    justify-content: center;
}

.price-box {
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.price-box h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.price {
    font-size: 3em;
    color: var(--secondary-color);
    font-weight: bold;
    margin: 20px 0;
}

.price-box ul {
    list-style: none;
    margin: 20px 0;
    text-align: left;
}

.price-box ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.price-box ul li:last-child {
    border-bottom: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

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

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

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
}

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

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #666;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

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

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

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

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* User Dropdown Menu */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.user-dropdown-toggle:hover {
    background: var(--bg-color);
}

.user-dropdown-toggle i.fa-user-circle {
    font-size: 1.5em;
    color: var(--primary-color);
}

.user-dropdown-toggle i.fa-chevron-down {
    font-size: 0.75em;
    color: var(--text-light);
    transition: transform 0.2s ease;
}

.user-dropdown.active .user-dropdown-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown backdrop */
.dropdown-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.01);
    z-index: 999;
    display: none;
    pointer-events: auto;
}

.dropdown-backdrop.show {
    display: block;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    min-width: 260px;
    display: none;
    z-index: 1001;
    overflow: visible;
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
    transform-origin: top right;
    pointer-events: auto;
}

.user-dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.15s ease-out forwards;
}

@keyframes dropdownFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Triangle pointer */
.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: var(--white);
    transform: rotate(45deg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

/* Dropdown header */
.dropdown-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-header-name {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.05em;
    margin-bottom: 2px;
}

.dropdown-header-email {
    font-size: 0.85em;
    color: var(--text-light);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.15s ease;
    font-size: 0.95em;
    font-weight: 500;
    position: relative;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.15s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

.dropdown-item:active {
    background: #e9ecef;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1em;
}

.dropdown-item.text-danger {
    color: var(--danger-color);
}

.dropdown-item.text-danger::before {
    background: var(--danger-color);
}

.dropdown-item.text-danger i {
    color: var(--danger-color);
}

.dropdown-item.text-danger:hover {
    background: #fff5f5;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .price {
        font-size: 2.5em;
    }
    
    main {
        padding: 20px;
    }
}
