body {
    background-color: #f8f9fa;
}

.card {
    border: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.25rem;
}

.btn-primary {
    background-color: #1a5276;
    border-color: #1a5276;
}

.btn-primary:hover {
    background-color: #154360;
    border-color: #154360;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
}

.table th {
    border-top: none;
    background-color: #f8f9fa;
    font-weight: 600;
}

.service-row {
    transition: background-color 0.2s;
}

.service-row:hover {
    background-color: #f8f9fa;
}

.service-row .form-control {
    background-color: #fff;
    border-radius: 6px;
}

.service-row .form-control:focus {
    border-color: #2e86c1;
    box-shadow: 0 0 0 0.2rem rgba(46, 134, 193, 0.25);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 6px;
}

.nav-link.active {
    border-bottom: 2px solid #fff;
}

.remove-service {
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-service:hover {
    transform: scale(1.1);
}

#addServiceBtn {
    transition: all 0.3s;
}

#addServiceBtn:hover {
    transform: scale(1.05);
}

/* Animation for new rows */
.service-row {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .service-row .col-md-2,
    .service-row .col-md-6 {
        margin-bottom: 8px;
    }
    
    .service-row .col-md-2 {
        padding: 0 5px;
    }
    
    .table-responsive {
        font-size: 14px;
    }
    
    .remove-service {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Form validation styles */
.is-invalid {
    border-color: #dc3545 !important;
}

.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}
