/* ============================================
   CHECK-IN/OUT ADMIN SECTION STYLES
   ============================================ */

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #1e40af;
    background: #f1f5f9;
}

.tab-btn.active {
    color: #1e40af;
    border-bottom-color: #1e40af;
    font-weight: 600;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-description {
    background: #f8fafc;
    padding: 15px;
    border-left: 4px solid #3b82f6;
    margin-bottom: 25px;
    color: #475569;
}

.tab-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.tab-section:last-child {
    border-bottom: none;
}

.tab-section h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 20px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-hint {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 0.85rem;
    font-style: italic;
}

/* Grid Inputs */
.time-inputs-grid,
.wifi-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .time-inputs-grid,
    .wifi-inputs-grid {
        grid-template-columns: 1fr;
    }
}

/* Emergency Contacts */
.contact-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.contact-inputs {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 768px) {
    .contact-inputs {
        grid-template-columns: 1fr;
    }
}

.no-data {
    color: #94a3b8;
    font-style: italic;
    padding: 20px;
    text-align: center;
    background: #f8fafc;
    border-radius: 8px;
}

/* Checklist Items Admin */
.checklist-item-admin {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.checklist-item-admin:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.checklist-item-admin.inactive {
    opacity: 0.6;
    background: #f8fafc;
}

.checklist-item-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.drag-handle {
    font-size: 1.2rem;
    color: #94a3b8;
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.checklist-item-text {
    flex: 1;
    font-weight: 500;
    color: #1e293b;
}

.checklist-item-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.checklist-item-help {
    margin-top: 10px;
    padding: 10px;
    background: #fef3c7;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #92400e;
}

/* Toggle Switch */
.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 24px;
    transition: background 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background: #10b981;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* History Section */
.history-section {
    margin-bottom: 40px;
}

.history-section h3 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 20px;
}

.history-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.history-header strong {
    font-size: 1.05rem;
    color: #1e293b;
}

.history-date {
    font-size: 0.85rem;
    color: #64748b;
}

.history-status {
    font-size: 0.9rem;
    color: #475569;
}

/* Tab Actions */
.tab-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
    display: flex;
    gap: 15px;
}

/* Button Styles */
.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-large {
    padding: 12px 32px;
    font-size: 1.05rem;
    font-weight: 600;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #64748b;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

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

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #dc2626;
}

/* ============================================
   CONTRACTOR RECOMMENDATIONS (Multiple)
   ============================================ */

.contractor-recommendation {
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.contractor-recommendation h4 {
    color: #166534;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contractor-details {
    background: white;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #d1fae5;
}

.contractor-details:last-child {
    margin-bottom: 0;
}

.contractor-details p {
    margin: 8px 0;
}

.contractor-specialties {
    color: #64748b;
    font-size: 0.9rem;
    font-style: italic;
}

.contractor-contact-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.contractor-notes {
    margin-top: 10px;
    padding: 10px;
    background: #fef3c7;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #92400e;
}

/* Marketplace Fallback */
.marketplace-fallback {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.marketplace-fallback h4 {
    color: #92400e;
    margin-bottom: 10px;
}

.marketplace-links {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.marketplace-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.marketplace-btn.thumbtack {
    background: #009fd9;
    color: white;
}

.marketplace-btn.thumbtack:hover {
    background: #007fb0;
}

.marketplace-btn.angi {
    background: #ff6f59;
    color: white;
}

.marketplace-btn.angi:hover {
    background: #e65a46;
}

.marketplace-btn.taskrabbit {
    background: #1ab394;
    color: white;
}

.marketplace-btn.taskrabbit:hover {
    background: #159a7f;
}

.marketplace-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #78350f;
}
