
/* Company Section Styles */
.content-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.section-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    color: #2c5aa0;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-approved {
    background: rgba(52, 168, 83, 0.1);
    color: #34a853;
}

.btn {
    padding: 8px 16px;
    border: 1px solid #2c5aa0;
    border-radius: 5px;
    background: white;
    color: #2c5aa0;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.btn:hover {
    background: #2c5aa0;
    color: white;
}

/* Info Cards */
.info-container {
    padding: 25px;
}

.info-card {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.info-card h3 {
    color: #2c5aa0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.info-item label {
    font-weight: 600;
    color: #6c757d;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.info-item p {
    margin: 0;
    color: #333;
}

/* Documents */
.documents-section {
    margin-bottom: 20px;
}

.documents-section h4 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1rem;
}

.documents-grid {
    display: grid;
    gap: 10px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    background: #f8f9fa;
}

.document-item.validated {
    border-left: 4px solid #34a853;
}

.document-item.pending {
    border-left: 4px solid #f9ab00;
}

.doc-status {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Accordion */
.accordion {
    border: 1px solid #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #e9ecef;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 15px 20px;
    background: #f8f9fa;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-content {
    padding: 20px;
    background: white;
    display: none;
}

.accordion-item.active .accordion-content {
    display: block;
}

/* Location & Staff */
.location-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.location-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.location-item h5 {
    color: #2c5aa0;
    margin-bottom: 5px;
}

.staff-list h6 {
    color: #495057;
    margin: 15px 0 10px 0;
}

.staff-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    margin-bottom: 8px;
}

.staff-info strong {
    display: block;
    margin-bottom: 2px;
}

.staff-info span {
    font-size: 0.9rem;
    color: #6c757d;
}

.doc-badge {
    padding: 2px 6px;
    background: #e9ecef;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Edit Form */
.edit-container {
    padding: 25px;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.form-section h3 {
    color: #2c5aa0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #ced4da;
    border-radius: 5px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.file-upload-area:hover {
    border-color: #2c5aa0;
    background: rgba(44, 90, 160, 0.02);
}

.file-upload-area input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-area p {
    margin: 0;
    color: #6c757d;
}

.file-upload-area span {
    color: #2c5aa0;
    text-decoration: underline;
}

.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-top: 8px;
}

.btn-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 20px;
    height: 20px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: auto;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.modal-body {
    padding: 25px;
}

/* Icons (using Unicode as fallback) */
.icon-edit::before { content: "✏️"; }
.icon-upload::before { content: "📤"; }
.icon-file-pdf::before { content: "📄"; }
.icon-chevron-down::before { content: "⌄"; }
 
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.location-type-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.input-with-button {
    display: flex;
    gap: 10px;
}

.input-with-button input {
    flex: 1;
}

.gps-status {
    margin-top: 5px;
    font-size: 0.9rem;
    color: #666;
}

.modal-content.large {
    max-width: 800px;
}

.camera-section {
    margin-bottom: 20px;
}

.camera-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.camera-preview {
    position: relative;
    width: 100%;
    height: 400px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.camera-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gps-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.image-item {
    position: relative;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.image-info {
    padding: 8px;
    background: #f8f9fa;
}

.image-info small {
    display: block;
    color: #666;
    margin-bottom: 2px;
}

.contact-person-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
}

.contact-person-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.contact-person-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c5aa0;
}

.contact-person-email {
    color: #666;
    font-size: 0.9rem;
}

.contact-person-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-weight: 600;
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.verification-badges {
    display: flex;
    gap: 10px;
}

.verification-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.verification-badge.verified {
    background: rgba(52, 168, 83, 0.1);
    color: #34a853;
}

.verification-badge.pending {
    background: rgba(249, 171, 0, 0.1);
    color: #f9ab00;
}

.doc-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.modal-form .form-group {
    margin-bottom: 20px;
}

.modal-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .location-type-buttons {
        width: 100%;
    }
    
    .location-type-buttons .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .form-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .contact-person-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-person-actions {
        align-self: flex-end;
    }
}
.section-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.document-item:hover {
    background: #e9ecef;
    border-color: #2c5aa0;
}

.document-item.validated {
    border-left: 4px solid #34a853;
}

.document-item.pending {
    border-left: 4px solid #f9ab00;
}

.document-item.invalid {
    border-left: 4px solid #ea4335;
}

.document-actions {
    margin-left: auto;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.document-item:hover .document-actions {
    opacity: 1;
}

.doc-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 70px;
    text-align: center;
}

.doc-status.valid {
    background: rgba(52, 168, 83, 0.1);
    color: #34a853;
}

.doc-status.pending {
    background: rgba(249, 171, 0, 0.1);
    color: #f9ab00;
}

.doc-status.invalid {
    background: rgba(234, 67, 53, 0.1);
    color: #ea4335;
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-name {
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 4px;
}

.document-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #666;
}

.document-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.empty-documents {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-documents i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-header-with-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .document-actions {
        margin-left: 0;
        opacity: 1;
        align-self: flex-end;
    }
    
    .document-meta {
        flex-direction: column;
        gap: 2px;
    }
}