/* Form/Edit Page Styles */

/* Certificate Type Header Themes */
.cert-header-gradient {
    color: white;
    border-radius: 0.5rem;
}

.cert-header-gradient.isolation {
    background: linear-gradient(135deg, #FFD700, #F0A500);
    color: #000000;
}

.cert-header-gradient.hotwork {
    background: linear-gradient(135deg, #6B2D8B, #3D1A52);
    color: #ffffff;
}

.cert-header-gradient.confined-space {
    background: linear-gradient(135deg, #00B050, #006630);
    color: #ffffff;
}

.cert-header-gradient.excavation {
    background: linear-gradient(135deg, #E36C09, #9A3D00);
    color: #ffffff;
}

.cert-header-gradient.radio {
    background: linear-gradient(135deg, #CC0000, #7B0000);
    color: #ffffff;
}

.cert-header-gradient.default {
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    color: #ffffff;
}

/* Certificate Form Specific Styles */
.cert-dated-input {
    width: 150px;
}

/* Tryout Badge Styles for Isolation Details */
.tryout-badge {
    min-width: 2.75rem;
    display: inline-block;
    cursor: pointer;
}

.tryout-badge.tryout-locked {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Lock Input Width */
.lock-input {
    width: 5.5rem;
}

/* Bottom Action Bar */
.bottom-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-top: 1px solid #dee2e6;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    z-index: 1050;
}

/* Permit Edit Page Styles */
/* Permit Type Header Themes */
.permit-header-gradient {
    color: white;
    border-radius: 0.5rem;
}

.permit-header-gradient.pfw {
    background: linear-gradient(135deg, #4472C4, #1E3A6E);
    color: #ffffff;
}

.permit-header-gradient.sft {
    background: linear-gradient(135deg, #92D050, #5A9E1A);
    color: #000000;
}

.permit-header-gradient.lwp {
    background: linear-gradient(135deg, #70B030, #3A7010);
    color: #000000;
}

.permit-header-gradient.default {
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    color: #ffffff;
}

/* Key Selection Container */
.key-selection-container {
    background: #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.08);
    border-radius: 0.5rem;
}

.key-selection-container .form-select {
    font-weight: 600;
}

.key-selection-container .form-label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.key-selection-container .form-check-input {
    transform: scale(1.15);
}

/* Permit Tabs - Toolbar Design */
.permit-tabs {
    background: linear-gradient(180deg, #e8eef5 0%, #d6dde8 100%);
    border: 1px solid #c5cdd9;
    border-bottom: none;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 0.5rem 0.75rem 0 0.75rem;
    margin-bottom: 0;
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.permit-tabs .nav-item {
    margin-bottom: 0;
}

.permit-tabs .nav-link {
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 0.375rem 0.375rem 0 0;
    padding: 0.75rem 1.25rem;
    margin: 0;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.permit-tabs .nav-link:hover {
    color: #1f2937;
    background: rgba(255, 255, 255, 0.7);
    border-color: #c5cdd9;
    transform: translateY(-2px);
}

.permit-tabs .nav-link.active {
    color: #0d6efd;
    background: #ffffff;
    border: 1px solid #0d6efd;
    border-bottom: 2px solid #ffffff;
    box-shadow: 0 -2px 8px rgba(13, 110, 253, 0.15);
    margin-bottom: -1px;
    z-index: 2;
}

/* Tab Content Styling - Connected to Active Tab */
.permit-tab-content {
    background: transparent;
    min-height: 400px;
    border: 2px solid #0d6efd;
    border-radius: 0 0.5rem 0.5rem 0.5rem;
    padding: 0;
    margin-top: -1px;
}

.permit-tab-content .tab-pane {
    padding: 1.5rem;
    animation: fadeIn 0.3s ease-in;
    background: #ffffff;
    border-radius: 0 0.5rem 0.5rem 0.5rem;
    min-height: 400px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.permit-tab-content .card {
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    background: white;
}

/* Top Form Card */
.permit-top-card {
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.permit-top-form .form-control,
.permit-top-form .form-select {
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    transition: border-color 0.15s ease;
}

.permit-top-form .form-control:focus,
.permit-top-form .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

/* Flow Badge */
.flow-badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

/* Info Cards Row */
.permit-info-cards .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.permit-info-cards .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 767.98px) {
    .permit-tabs .nav-link {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }

    .permit-tab-content .tab-pane {
        padding: 1rem 0;
    }
}

