/* Gedeelde styling voor klantenpagina's */

/* Container en basis layout */
.klanten-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Terug link */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #00b0df;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border: 2px solid #00b0df;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #00b0df;
    color: white;
}

/* Navigatie menu voor klantenoverzicht */
.klanten-nav-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    list-style: none;
    padding: 0;
}

.klanten-nav-menu li {
    background: #00b0df;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.klanten-nav-menu li:hover {
    transform: translateY(-2px);
    background:#e48f00;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.klanten-nav-menu a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 400;
}

/* Content secties */
.content-section {
    background: white;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.intro-text {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 30px;
    color: #666;
}

/* Formulieren */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #000000;
    font-size: 0.95rem;
}



.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.form-group input[type='checkbox']
{
width:50px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00b0df;
    box-shadow: 0 0 0 3px rgba(0, 176, 223, 0.1);
}

/* Tabellen */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.data-table th {
    background: #000000;
    color: #ffffff;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

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

/* Product items */
.product-item {
    display: grid;
    grid-template-columns: 100px 100px 1fr 150px 100px 100px 80px 40px;
    gap: 15px;
    align-items: center;
    padding: 10px;
    border: 1px solid #e1e5e9;
    margin-bottom: 10px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
}

.product-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Product foto container */
.product-foto {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 70px;
    background-color: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-foto:hover {
    border-color: #00b0df;
    box-shadow: 0 2px 8px rgba(0,176,223,0.15);
}

.product-foto img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-foto:hover img {
    transform: scale(1.05);
}

.product-code {
    font-weight: 600;
    color: #00b0df;
    font-size: 0.9rem;
}

.product-name {
    color: #000000;
    font-weight: 500;
}

.product-brand {
    color: #666;
    font-size: 0.9rem;
}

.product-price {
    font-weight: 600;
    color: #2e7d32;
    font-size: 1.1rem;
}

.quantity-input {
    width: 60px;
    padding: 8px;
    border: 2px solid #e1e5e9;
    text-align: center;
    font-size: 0.9rem;
}

.quantity-input:focus {
    outline: none;
    border-color: #00b0df;
}

/* Product tooltip */
.product-tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e1e5e9;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.product-tooltip.visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.tooltip-info {
    color: #000000;
}

.tooltip-info label {
    font-weight: 600;
    color: #00b0df;
    margin-right: 8px;
}

.tooltip-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* Iconen */
.info-icon, .specs-icon, .delete-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.info-icon:hover, .specs-icon:hover, .delete-icon:hover {
    transform: scale(1.1);
}

/* Knoppen */
.btn-primary {
    background: #00b0df;
    color: white;
    padding: 15px 40px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #0099c7;
    color: white;
}

.btn-secondary {
    background: #e48f00;
    color: white;
    padding: 15px 40px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-secondary:hover {
    background: #cc7e00;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1976d2;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Prijzen */
.price {
    font-weight: 600;
    color: #2e7d32;
}

/* Links */
.order-link {
    color: #00b0df;
    text-decoration: none;
    font-weight: 600;
}

.order-link:hover {
    text-decoration: underline;
}

/* Grid voor info cards */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.info-card {
    background: white;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.info-card h3 {
    margin: 0 0 20px 0;
    color: #000000;
    font-size: 1.3rem;
    border-bottom: 2px solid #00b0df;
    padding-bottom: 10px;
}

.info-table {
    width: 100%;
}

.info-table td {
    padding: 8px 0;
    vertical-align: top;
}

.info-table td:first-child {
    font-weight: 600;
    color: #555;
    width: 40%;
}

.info-table td:last-child {
    color: #000000;
}

/* Totaal rijen in tabellen */
.total-row {
    background: #f8f9fa !important;
    font-weight: 600;
}

.total-row td {
    border-top: 2px solid #00b0df !important;
}

/* Welkom sectie */
.welcome-section {
    background: #efefef;
    padding: 40px 0;
    margin-bottom: 30px;
    text-align: center;
}

.welcome-section h1 {
    margin: 0;
    color: #000000;
    font-size: 2.5rem;
    font-weight: 600;
}

/* Submit secties */
.submit-section {
    text-align: right;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    margin-top: 30px;
}

/* Geen producten/bestellingen */
.no-items {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
}

/* Success messages */
.success-message {
    background: #f8f9fa;
    color: #000000;
    padding: 15px 20px;
    margin-bottom: 20px;
    text-align: left;
    font-weight: 500;
}

/* Password sectie */
.password-section {
    background: #f8f9fa;
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid #00b0df;
}

.password-section h3 {
    margin: 0 0 15px 0;
    color: #000000;
    font-size: 1.1rem;
}

.password-section p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.9rem;
}

/* Group selector */
.group-selector {
    background: white;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.group-selector h3 {
    margin: 0 0 15px 0;
    color: #000000;
    font-size: 1.2rem;
}

.group-selector select {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

.group-selector select:focus {
    outline: none;
    border-color: #00b0df;
}

/* Responsive design */
@media (max-width: 768px) {
    .klanten-nav-menu {
        grid-template-columns: 1fr;
    }

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

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-item {
        grid-template-columns: 80px 1fr !important;
        grid-template-rows: auto auto auto auto;
        gap: 10px;
        text-align: left;
        grid-template-areas:
            "foto name"
            "foto brand"
            "foto price"
            "actions actions";
    }

    .product-foto {
        grid-area: foto !important;
        width: 80px;
        height: 60px;
    }

    .product-code {
        display: none;
    }

    .product-name {
        grid-area: name;
        font-size: 12px;
        font-weight: 600;
    }

    .product-brand {
        grid-area: brand;
        font-size: 11px;
    }

    .product-info {
        display: none;
    }

    .product-price {
        grid-area: price;
        font-size: 14px;
        font-weight: bold;
        text-align: left;
    }

    .quantity-input {
        grid-area: actions;
        width: 80px;
        margin-right: 10px;
    }

    .delete-icon {
        grid-area: actions;
        justify-self: end;
    }

    .product-tooltip {
        grid-template-columns: 1fr;
    }

    .tooltip-image {
        width: 100%;
        height: 200px;
    }

    .data-table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }

    .webshoptitel h1 {
        font-size: 1.6rem;
    }

    .welcome-section h1 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}