/* Loading Overlay Styles */
.form-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.form-loading-overlay.active {
    display: flex;
}

.form-loading-content {
    background: transparent;
    padding: 0;
    border-radius: 8px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.form-loading-text {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* Button loading state */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

/* Scheduled Meetings Table Styles */
#scheduledMeetingsTable {
    width: 100%;
}

#scheduledMeetingsTable thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding: 12px;
}

#scheduledMeetingsTable tbody td {
    padding: 12px;
    vertical-align: middle;
}

#scheduledMeetingsTable tbody tr:hover {
    background-color: #f8f9fa;
}

#scheduledMeetingsTable .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    font-weight: 500;
}

#scheduledMeetingsTable .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Card styling for scheduled meetings */
.card.shadow-sm {
    border: none;
    border-radius: 0.5rem;
}

.card-header.bg-white {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Responsive table */
@media (max-width: 768px) {
    #scheduledMeetingsTable {
        font-size: 0.875rem;
    }

    #scheduledMeetingsTable thead th,
    #scheduledMeetingsTable tbody td {
        padding: 8px;
    }
}

/* Breadcrumb Styles */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
}

.breadcrumb-item {
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 0.5rem;
    color: #6c757d;
}

/* In-Person Meetings Table Styles */
#inPersonMeetingsTable {
    width: 100%;
}

#inPersonMeetingsTable thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding: 12px;
}

#inPersonMeetingsTable tbody td {
    padding: 12px;
    vertical-align: middle;
}

#inPersonMeetingsTable tbody tr:hover {
    background-color: #f8f9fa;
}

#inPersonMeetingsTable .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    font-weight: 500;
}

#inPersonMeetingsTable .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    #inPersonMeetingsTable {
        font-size: 0.875rem;
    }

    #inPersonMeetingsTable thead th,
    #inPersonMeetingsTable tbody td {
        padding: 8px;
    }
}

/* Icon Selection Modal Styles */
#iconModal .icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    padding: 10px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: white;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.icon-item:focus {
    outline: none;
    box-shadow: none;
}

.icon-item:hover {
    border-color: #206bc4;
    background-color: #f8f9fa;
    transform: scale(1.05);
    text-decoration: none;
    color: inherit;
}

.icon-item.selected {
    border-color: #206bc4;
    background-color: #e7f3ff;
}

.icon-item i {
    font-size: 32px;
    margin-bottom: 8px;
    color: #206bc4;
}

.icon-item span {
    font-size: 11px;
    color: #666;
    word-break: break-word;
}

/* Ticket System Styles */
.btn-ticket-raise {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.btn-ticket-raise:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-ticket-raise i {
    font-size: 0.8rem;
}

/* Ticket Table Styles */
.ticket-table {
    width: 100%;
}

.ticket-table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    padding: 12px;
    font-size: 0.875rem;
}

.ticket-table tbody td {
    padding: 12px;
    vertical-align: middle;
    font-size: 0.875rem;
}

.ticket-table tbody tr:hover {
    background-color: #f8f9fa;
}

.ticket-table .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .ticket-table {
        font-size: 0.8rem;
    }

    .ticket-table thead th,
    .ticket-table tbody td {
        padding: 8px;
    }
    
    .btn-ticket-raise {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Global Search Styles */
#global-search-results {
    min-width: 400px;
    max-width: 500px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    margin-top: 0.25rem;
}

#global-search-results.show {
    display: block !important;
}

#global-search-results .dropdown-header {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

#global-search-results .dropdown-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.15s ease-in-out;
}

#global-search-results .dropdown-item:hover {
    background-color: #f8f9fa;
}

#global-search-results .dropdown-item:last-child {
    border-bottom: none;
}

#voice-search-btn {
    border: none;
    background: transparent;
    color: #6c757d;
    transition: color 0.15s ease-in-out;
}

#voice-search-btn:hover {
    color: #0969da;
    background: transparent;
}

#voice-search-btn.listening {
    color: #dc3545;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
