/**
 * rediger-anbud CSS
 * Flyttet fra includes/rediger-anbud.php
 */

    /* Leveringsmaate moderne styling */
    .leveringsmaate-seksjon {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid #e5e7eb;
    }
    
    .seksjon-label {
        display: block;
        font-size: 1rem;
        font-weight: 600;
        color: #1a2e1c;
        margin-bottom: 1rem;
    }
    
    .leveringsvalg-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .leveringsvalg-card {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1.25rem;
        background: #ffffff;
        border: 2px solid #e5e7eb;
        border-radius: 16px;
        cursor: pointer;
        transition: all 0.25s ease;
        position: relative;
    }
    
    .leveringsvalg-card:hover {
        border-color: #4ade80;
        background: #f0fdf4;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(44, 85, 48, 0.1);
    }
    
    .leveringsvalg-card.selected {
        border-color: #3a5f41;
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
        box-shadow: 0 4px 16px rgba(44, 85, 48, 0.15);
    }
    
    .leveringsvalg-card input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }
    
    .card-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8fafc;
        border-radius: 12px;
        flex-shrink: 0;
    }
    
    .leveringsvalg-card.selected .card-icon {
        background: rgba(44, 85, 48, 0.1);
    }
    
    .card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .card-title {
        font-weight: 600;
        color: #1a2e1c;
        font-size: 0.95rem;
    }
    
    .card-desc {
        font-size: 0.8rem;
        color: #6b7280;
    }
    
    .card-checkbox {
        width: 28px;
        height: 28px;
        border: 2px solid #d1d5db;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }
    
    .card-checkbox svg {
        width: 16px;
        height: 16px;
        color: transparent;
        transition: color 0.2s ease;
    }
    
    .leveringsvalg-card.selected .card-checkbox {
        background: linear-gradient(135deg, #3a5f41 0%, #3d7344 100%);
        border-color: #3a5f41;
    }
    
    .leveringsvalg-card.selected .card-checkbox svg {
        color: #fff;
    }
    
    /* Moderne handlingsknapper */
    .form-actions-modern {
        display: flex;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 2px solid #f0f0f0;
    }
    
    .btn-save-modern {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 2rem;
        background: linear-gradient(135deg, #3a5f41 0%, #3d7344 100%);
        color: #fff !important;
        border: none;
        border-radius: 14px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(44, 85, 48, 0.25);
    }
    
    .btn-save-modern:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(44, 85, 48, 0.35);
        background: linear-gradient(135deg, #3d7344 0%, #4a8a52 100%);
    }
    
    .btn-save-modern:active {
        transform: translateY(-1px);
    }
    
    .btn-save-modern svg {
        flex-shrink: 0;
    }
    
    .btn-cancel-modern {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 1rem 1.75rem;
        background: #f8f9fa;
        color: #6b7280 !important;
        border: 2px solid #e5e7eb;
        border-radius: 14px;
        font-size: 1rem;
        font-weight: 500;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .btn-cancel-modern:hover {
        background: #fff;
        border-color: #d1d5db;
        color: #374151 !important;
    }
    
    .btn-cancel-modern svg {
        flex-shrink: 0;
    }
    
    /* Responsiv */
    @media (max-width: 640px) {
        .leveringsvalg-grid {
            grid-template-columns: 1fr;
        }
        
        .form-actions-modern {
            flex-direction: column;
        }
        
        .btn-save-modern,
        .btn-cancel-modern {
            width: 100%;
            justify-content: center;
        }
    }

    .kommune-suggestions {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #ddd;
        border-top: none;
        max-height: 200px;
        overflow-y: auto;
        z-index: 1000;
        display: none;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .anbud-form-gruppe {
        position: relative;
    }
    
    .kommune-suggestion {
        padding: 10px 15px;
        cursor: pointer;
        border-bottom: 1px solid #eee;
        transition: background-color 0.2s;
    }
    
    .kommune-suggestion:hover {
        background: #f5f5f5;
    }
    
    .kommune-suggestion:last-child {
        border-bottom: none;
    }


