/* Main Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    padding-bottom: 20px;
}

/* Header Styles */
.header-container {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Tab Navigation Styles */
.nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    padding: 10px 0;
    border: none;
    border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
    background-color: transparent;
}

/* Card Styles */
.card {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: none;
}

.card-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 10px 15px;
}

/* Item Card Styles */
.item-card {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 12px;
    background-color: white;
    overflow: hidden;
}

.item-header {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.item-body {
    padding: 15px;
}

.item-row {
    margin-bottom: 10px;
}

/* Signature Pad Styles */
.signature-container {
    border: 1px solid #ced4da;
    border-radius: 8px;
    position: relative;
    width: 100%;
    height: 180px;
    background-color: #fff;
    overflow: hidden;
}

.signature-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    cursor: pointer;
    touch-action: none;
    z-index: 10;
}

/* Photo Styles */
.photo-preview-container {
    margin-top: 10px;
    max-height: 300px;
    overflow: hidden;
    text-align: center;
}

#photoPreview {
    max-width: 100%;
    max-height: 300px;
}

.photo-thumbnail {
    max-width: 100%;
    max-height: 120px;
    border-radius: 4px;
    cursor: pointer;
}

.photo-placeholder {
    width: 100%;
    height: 100px;
    border: 1px dashed #ced4da;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6c757d;
    cursor: pointer;
}

/* Form Controls */
.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .signature-pad-container {
        height: 150px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
    }
}
