
/* Mobile-First Responsive Styles */
/* Container */
.provider-registration-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}


/* Typography */

.page-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #333;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.section-subtitle {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 16px 0;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    color: #555;
}

/* Card Sections */

.card-section {
    margin-bottom: 20px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Form Layout - Mobile First */

.form-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

    .form-group.full-width {
        width: 100%;
    }

/* Labels */

.form-label {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
    display: block;
}

/* Required indicator */

.text-danger {
    color: #dc3545;
}

/* Validation messages */

.validation-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* New provider section */

.new-provider-section {
    margin-top: 20px;
}

/* Button Container */

.button-container {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    padding: 16px 0;
}

.submit-button {
    min-width: 200px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
}

/* Telerik Components Mobile Optimization */

.k-textbox,
.k-picker,
.k-dropdown,
.k-numerictextbox {
    font-size: inherit !important; /* Prevents zoom on iOS */

    min-height: 24px; /* Touch-friendly size */
}

/* Input spacing */

.k-input-inner {
    padding: 10px 12px;
}

@media (width: 360px) {
    .card-title {
        font-size: 14px;
        font-weight: 600;
        margin: 0;
        color: #333;
    }
    .form-label {
        font-weight: 500;
        font-size: 12px;
        margin-bottom: 6px;
        color: #333;
        display: block;
    }
}
    /* =================== TABLET STYLES (768px and up) =================== */

    @media (min-width: 768px) {

        .provider-registration-container {
            padding: 24px;
        }

        .page-title {
            font-size: 28px;
            margin-bottom: 32px;
        }

        .card-title {
            font-size: 20px;
        }

        .section-subtitle {
            font-size: 18px;
            margin: 24px 0 20px 0;
        }
        /* Two columns on tablet */
        .form-row {
            flex-direction: row;
            gap: 20px;
        }

        .form-group {
            width: calc(50% - 10px);
        }

        .form-row-three .form-group {
            width: calc(33.333% - 14px);
        }

        .form-group.full-width {
            width: 100%;
        }

        .card-section {
            margin-bottom: 24px;
        }

        .button-container {
            justify-content: flex-end;
            padding: 20px 0;
        }
    }
    /* =================== DESKTOP STYLES (1024px and up) =================== */
    @media (min-width: 1024px) {
        .provider-registration-container {
            padding: 32px;
        }

        .page-title {
            font-size: 32px;
            margin-bottom: 40px;
        }

        .card-section {
            margin-bottom: 32px;
        }

        .form-row {
            gap: 24px;
        }

        .form-group {
            width: calc(50% - 12px);
        }

        .form-row-three .form-group {
            width: calc(33.333% - 16px);
        }
    }
    /* =================== LARGE DESKTOP (1440px and up) =================== */
    @media (min-width: 1440px) {
        .provider-registration-container {
            padding: 40px;
        }
    }
    /* =================== MOBILE SPECIFIC OPTIMIZATIONS =================== */
    @media (max-width: 767px) {
        /* Ensure full-width dropdowns on mobile */
        .k-dropdown,
        .k-picker {
            width: 100% !important;
        }
        /* Better spacing for touch */
        .form-label {
            font-size: 15px;
            margin-bottom: 8px;
        }
        /* Larger touch targets */
        .submit-button {
            width: 100%;
            min-height: 50px;
        }
        /* Card padding adjustment */
        .k-card-body {
            padding: 16px !important;
        }

        .k-card-header {
            padding: 12px 16px !important;
        }
    }
    /* =================== ACCESSIBILITY & TOUCH IMPROVEMENTS =================== */
    /* Focus states for keyboard navigation */
    .k-textbox:focus-within,
    .k-picker:focus-within,
    .k-dropdown:focus-within {
        outline: 2px solid #0066cc;
        outline-offset: 2px;
    }
    /* Disabled state visibility */
    .k-textbox.k-disabled,
    .k-picker.k-disabled {
        background-color: #f5f5f5;
        opacity: 0.7;
    }
    /* Better tap targets for mobile */
    @media (hover: none) and (pointer: coarse) {
        .k-button,
        .k-dropdown,
        .k-picker {
            min-height: 48px;
        }
    }
    /* =================== PRINT STYLES =================== */
    @media print {
        .button-container {
            display: none;
        }

        .card-section {
            page-break-inside: avoid;
            box-shadow: none;
            border: 1px solid #ddd;
        }
    }
    /* =================== DARK MODE SUPPORT (Optional) =================== */
    @media (prefers-color-scheme: dark) {
        .provider-registration-container {
            background-color: #1a1a1a;
        }

        .page-title,
        .card-title,
        .section-subtitle,
        .form-label {
            color: #e0e0e0;
        }

        .card-section {
            background-color: #2a2a2a;
        }
    }




/* =================== For Collection screens =================== */


.children-management-container {
    padding: 20px;
    max-width: 100%;
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

    .header-section h3 {
        margin: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

.header-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Statistics Card */
.statistics-card {
    display: flex;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    color: white;
    gap: 15px;
    justify-content: center;
    align-items: stretch;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background 0.2s ease;
}

    .stat-item:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.15);
    }

.stat-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .stat-icon .k-svg-icon {
        color: white;
    }

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2px;
}

.stat-divider {
    display: none;
}

.stat-total .stat-icon {
    background: rgba(255, 255, 255, 0.25);
}

.stat-available .stat-icon {
    background: rgba(40, 167, 69, 0.3);
}

.stat-not-available .stat-icon {
    background: rgba(220, 53, 69, 0.3);
}

.mobile-grid {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-bottom: 20px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    text-align: center;
}

.status-available {
    background-color: #d4edda;
    color: #155724;
}

.status-not-available {
    background-color: #f8d7da;
    color: #721c24;
}

.action-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .btn-action:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .btn-action:active {
        transform: translateY(0);
    }

.btn-edit {
    background-color: #007bff;
    color: white;
}

    .btn-edit:hover {
        background-color: #0056b3;
    }

.btn-view {
    background-color: #17a2b8;
    color: white;
}

    .btn-view:hover {
        background-color: #117a8b;
    }

.btn-delete {
    background-color: #dc3545;
    color: white;
}

    .btn-delete:hover {
        background-color: #c82333;
    }

.btnn-warning {
    background-color: #ffc107;
    color: #000;
}

.btnn-warning:hover {
        color: #000;
        background-color: #ffca2c;
        border-color: #ffc720;
    }
.btnn-warning {
    --bs-btn-color: #000;
    --bs-btn-bg: #ffc107;
    --bs-btn-border-color: #ffc107;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #ffca2c;
    --bs-btn-hover-border-color: #ffc720;
    --bs-btn-focus-shadow-rgb: 217, 164, 6;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #ffcd39;
    --bs-btn-active-border-color: #ffc720;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #000;
    --bs-btn-disabled-bg: #ffc107;
    --bs-btn-disabled-border-color: #ffc107;
}
/* Inline Panel Styles */
.inline-panel {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 20px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

    .panel-header h4 {
        margin: 0;
        color: #333;
        font-size: 18px;
        font-weight: 600;
    }

.panel-body {
    padding: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group.full-width {
        grid-column: 1 / -1;
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #495057;
        font-size: 14px;
    }

/* Standard HTML Input Styles */
.form-control {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form-control:focus {
        color: #495057;
        background-color: #fff;
        border-color: #80bdff;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

    .form-control::placeholder {
        color: #6c757d;
        opacity: 0.6;
    }

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    appearance: auto;
    padding-right: 30px;
}

input[type="date"].form-control {
    appearance: auto;
}

/* Remove previous Telerik input styles */
.form-group .k-input,
.form-group .k-textbox,
.form-group .k-textarea,
.form-group .k-picker,
.form-group .k-dropdownlist,
.form-group .k-datepicker,
.form-group input.k-input-inner,
.form-group .k-input-inner,
.form-group textarea.k-input-inner {
    font-size: 14px !important;
    font-family: inherit;
    line-height: 1.5;
}

    .form-group .k-textarea textarea {
        font-size: 14px !important;
        font-family: inherit;
    }

.form-group .k-dropdown-wrap .k-input,
.form-group .k-picker-wrap .k-input {
    font-size: 14px !important;
}

.form-actions {
    display:flex;
    justify-content:center;
    align-items:center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}

/* Standard Button Styles */
.btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    .btn:active {
        transform: translateY(0);
    }

.btn-primary {
    background-color: #007bff;
    color: white;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

    .btn-secondary:hover {
        background-color: #545b62;
    }

.btn-danger {
    background-color: #dc3545;
    color: white;
}

    .btn-danger:hover {
        background-color: #c82333;
    }

.btn-success {
    background-color: #28a745;
    color: white;
}

    .btn-success:hover {
        background-color: #218838;
    }

.btn-close {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

    .btn-close:hover {
        background-color: rgba(0, 0, 0, 0.1);
        color: #333;
    }

/* View Panel Specific Styles */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.view-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

    .view-section h5 {
        color: #495057;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 0 0 15px 0;
        font-weight: 700;
    }

.view-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.view-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .view-field strong {
        color: #6c757d;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .view-field span {
        color: #212529;
        font-size: 15px;
        font-weight: 400;
    }

.text-muted {
    color: #666;
    font-size: 14px;
}

.validation-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .statistics-card {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .children-management-container {
        padding: 10px;
    }

    .header-section {
        flex-direction: column;
        align-items: stretch;
    }

        .header-section h3 {
            text-align: center;
            margin-bottom: 10px;
            font-size: 20px;
            line-height: 1.3;
            white-space: normal;
        }

    .header-buttons {
        flex-direction: column;
        width: 100%;
    }

        .header-buttons .btn {
            width: 100%;
        }

    .statistics-card {
        width: 95%;
        flex-direction: column;
        padding: 15px;
        gap: 12px;
    }

    .stat-item {
        width: 100%;
        padding: 12px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 10px;
    }

    .action-buttons {
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-actions {
        flex-direction: column;
    }

        .form-actions .btn {
            width: 100%;
        }

    .panel-body {
        padding: 15px;
    }

    .panel-header {
        padding: 15px;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .view-section {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .mobile-grid .k-grid-header .k-table-th,
    .mobile-grid .k-grid-content .k-table-td {
        padding: 8px 4px;
        font-size: 12px;
    }

    .status-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .panel-header h4 {
        font-size: 16px;
    }

    .header-section h3 {
        font-size: 18px;
        line-height: 1.2;
    }
}



/* FOR PROVIDER COLLECTION SCREEN*/
/* Responsive Grid Optimizations */


.responsive-grid {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile Grid Optimizations */
@media (max-width: 768px) {
    .mobile-header {
        font-size: 1.25rem;
    }
    /* Make grid scrollable horizontally on mobile */
    .responsive-grid {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Larger touch targets for action buttons */
    .mobile-action-btn {
        min-width: 40px;
        min-height: 40px;
        padding: 8px;
        margin: 2px;
    }

    .action-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
    }
    /* Better grid cell padding on mobile */
    .k-grid td {
        padding: 12px 8px;
    }
    /* Make pager buttons larger on mobile */
    .k-pager .k-button {
        min-height: 44px;
        min-width: 44px;
    }
    /* Responsive font sizes */
    .k-grid {
        font-size: 0.9rem;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .responsive-grid {
        font-size: 0.95rem;
    }

    .action-buttons {
        display: flex;
        gap: 5px;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Desktop styles */
@media (min-width: 1025px) {
    .action-buttons {
        display: flex;
        gap: 5px;
        justify-content: center;
    }

    .edit-panel {
        animation: slideDown 0.3s ease-in-out;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
        margin-top: 20px;
    }
}
/* Summary Cards Grid */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

    .card:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        transform: translateY(-2px);
    }

.card-body {
    padding: 1rem;
}

    .card-body.highlight {
        border: 2px solid #007bff;
        background-color: #e7f1ff;
        border-radius: 0.75rem;
    }
.text-sm {
    font-size: 0.875rem;
}

.text-gray-500 {
    color: #6b7280;
    font-weight:600;
    font-size:inherit;
}

.text-2xl {
    font-size: 1.5rem;
}

.font-bold {
    font-weight: 700;
}
.section-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, #e0e0e0 100%);
    padding: 18px 30px;
    border-bottom: 3px solid #e0e0e0;
}


/* SweetAlert Font Size and Icon Fix */

.swal2-html-container {
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.swal2-title {
    font-size: 18px !important;
}

/* Fix SweetAlert Icon Size */

.swal2-icon {
    width: 60px !important;
    height: 60px !important;
    margin: 1em auto 0.6em !important;
}

    .swal2-icon.swal2-error {
        border-width: 3px !important;
    }

        .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
            width: 35px !important;
            height: 3px !important;
        }

            .swal2-icon.swal2-error [class^='swal2-x-mark-line'][class$='left'] {
                left: 12px !important;
            }

            .swal2-icon.swal2-error [class^='swal2-x-mark-line'][class$='right'] {
                right: 12px !important;
            }

    /* Fix Success Icon Size */

    .swal2-icon.swal2-success {
        border-width: 3px !important;
    }

        .swal2-icon.swal2-success .swal2-success-ring {
            width: 60px !important;
            height: 60px !important;
        }

        .swal2-icon.swal2-success [class^='swal2-success-line'] {
            height: 3px !important;
        }

            .swal2-icon.swal2-success [class^='swal2-success-line'][class$='tip'] {
                width: 16px !important;
                left: 10px !important;
                top: 32px !important;
            }

            .swal2-icon.swal2-success [class^='swal2-success-line'][class$='long'] {
                width: 30px !important;
                right: 6px !important;
                top: 26px !important;
            }

        .swal2-icon.swal2-success .swal2-success-fix {
            width: 5px !important;
            left: 18px !important;
        }

    /* Fix Warning/Info Icons */

    .swal2-icon.swal2-warning,
    .swal2-icon.swal2-info {
        font-size: 40px !important;
    }
