/* 
 * SCA Info Capture - Custom Styles
 * Primary: #1B3C5F
 * Secondary: #EBB12B
 * White: #FFFFFF
 */

:root {
    --primary: #1B3C5F;
    --primary-light: #2a5a8c;
    --primary-dark: #122a43;
    --secondary: #EBB12B;
    --secondary-light: #f1c55a;
    --secondary-dark: #d19a1a;
    --white: #FFFFFF;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

/* General Styles */
body {
    font-family: 'Poppins', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

.content {
    flex: 1;
}

/* Ensure main container takes up available space */
.main-container {
    flex: 1 0 auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.text-primary {
    color: #142E49 !important;
}

.input-group-lg>.btn, .input-group-lg>.form-control, .input-group-lg>.form-select, .input-group-lg>.input-group-text {
    font-size: 1rem;
}

/* Tech Background */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    overflow: hidden;
}

.tech-particle {
    position: absolute;
    background-color: var(--secondary);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(0) translateX(20px);
    }
    75% {
        transform: translateY(20px) translateX(10px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* High-tech Theme */
.high-tech-bg {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
}

.high-tech-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
}

.high-tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-header-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 1.5rem;
    border-bottom: 3px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.card-header-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.card-header-custom h2 {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    margin: 0;
}

.card-body-custom {
    padding: 1.5rem;
}

.high-tech-footer {
    flex-shrink: 0;
    margin-top: auto;
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--secondary);
}

.high-tech-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(235, 177, 43, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.input-group {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background-color: white;
}

.input-group.input-focus {
    box-shadow: 0 12px 25px rgba(235, 177, 43, 0.25);
    transform: translateY(-3px);
}

.input-group-text {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
}

.input-focus .input-group-text {
    background-color: var(--secondary);
    color: var(--primary-dark);
}

.form-control, .form-select {
    border: none;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.form-control:focus, .form-select:focus {
    background-color: white;
    box-shadow: 0 8px 15px rgba(235, 177, 43, 0.2);
    transform: scale(1.01);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    border: none;
    color: var(--primary-dark);
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
    color: var(--primary-dark);
}

/* Action button styles */
.action-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 4px !important;
}

/* Header Styles */
.header-content {
    padding: 2rem 0;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.logo-container img {
    height: 60px;
    margin-right: 1rem;
}

.logo-text {
    color: var(--white);
}

.logo-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.logo-text p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
}

.header-tagline {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    position: relative;
}

.header-tagline::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: var(--secondary);
}

/* Thank You Card Styles */
.thank-you-card {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success) 0%, #1e7e34 100%);
    color: white;
    font-size: 2.5rem;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    animation: pulse 2s infinite;
}

.thank-you-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.thank-you-message {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 20px rgba(40, 167, 69, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Message Styles */
.success-card {
    text-align: center;
    padding: 3rem;
}

.success-icon {
    font-size: 5rem;
    color: var(--success);
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.success-message h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.success-message p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Footer Styles */
.footer-custom {
    flex-shrink: 0;
    margin-top: auto;
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--secondary);
}

.footer-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--secondary);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .high-tech-table {
        display: block;
        overflow-x: auto;
    }
    
    .logo-text h1 {
        font-size: 1.8rem;
    }
    
    .logo-text p {
        font-size: 0.9rem;
    }
    
    .header-tagline {
        font-size: 1rem;
    }
    
    .high-tech-card {
        margin-bottom: 1.5rem;
    }
    
    .card-header-custom h2 {
        font-size: 1.3rem;
    }
    
    .card-body-custom {
        padding: 1.2rem;
    }
    
    .success-icon {
        font-size: 4rem;
    }
    
    .success-message h3 {
        font-size: 1.5rem;
    }
    
    .success-message p {
        font-size: 1rem;
    }
    
    .footer-custom {
        text-align: center;
    }
    
    .footer-links, .social-links {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .main-container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 576px) {
    .logo-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container img {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .header-tagline {
        text-align: center;
    }
    
    .header-tagline::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .input-group-text {
        padding: 0.5rem 0.8rem;
    }
    
    .form-control, .form-select {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* User Dashboard Styles */
.dashboard-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    background-color: white;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.dashboard-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem;
    border-bottom: 3px solid var(--secondary);
}

.dashboard-card-body {
    padding: 1.5rem;
}

.stat-card {
    border-radius: 15px;
    padding: 1.5rem;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    background-color: rgba(27, 60, 95, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #193859;
    line-height: 1.2;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.5rem;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* Animation for page transitions */
.page-transition {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glowing effect for buttons on hover */
.btn-glow:hover {
    box-shadow: 0 0 20px rgba(235, 177, 43, 0.5);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Card title gradient effect */
.card-title-gradient {
    background: linear-gradient(to right, #1B3C5F, #EBB12B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    font-size: 1.75rem;
}

/* Login page specific styles */
.login-page {
    background: linear-gradient(135deg, #1B3C5F 0%, #2A5A8C 100%);
    min-height: 100vh;
}

.login-page .card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.login-page .form-control:focus,
.login-page .input-group-text:focus {
    border-color: #1B3C5F;
    box-shadow: 0 0 0 0.25rem rgba(27, 60, 95, 0.25);
}

.login-page .btn-primary {
    background-color: #1B3C5F;
    border-color: #1B3C5F;
    transition: all 0.3s ease;
}

.login-page .btn-primary:hover,
.login-page .btn-primary:focus {
    background-color: #2A5A8C;
    border-color: #2A5A8C;
    color: #EBB12B;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(27, 60, 95, 0.3);
}

.login-page .input-group-text {
    background-color: #f8f9fa;
    color: #1B3C5F;
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effect for back to form link */
.login-page a:hover {
    color: #EBB12B !important;
}

/* Pulse animation for login button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(27, 60, 95, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(27, 60, 95, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(27, 60, 95, 0);
    }
}

.pulse {
    animation: pulse 1.5s infinite;
}

/* Sidebar Styles */
#wrapper {
    overflow-x: hidden;
    display: flex;
    width: 100%;
}

#sidebar-wrapper {
    min-height: 100vh;
    width: 250px;
    margin-left: -250px;
    transition: margin 0.25s ease-out;
    background: linear-gradient(to bottom, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
}

#sidebar-wrapper .list-group {
    width: 250px;
}

.sidebar-logo {
    max-width: 80px;
    height: auto;
}

.sidebar-title {
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 5px;
    background: linear-gradient(to right, var(--white) 0%, var(--secondary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

.high-tech-sidebar .list-group-item {
    border: none;
    padding: 15px 20px;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.high-tech-sidebar .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-left: 4px solid var(--secondary);
}

.high-tech-sidebar .list-group-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-left: 4px solid var(--secondary);
}

.sidebar-footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

#page-content-wrapper {
    min-width: 100vw;
    transition: margin-left 0.25s ease-out;
}

#wrapper.toggled #page-content-wrapper {
    margin-left: 250px;
}

/* Responsive sidebar */
@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }
  
    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }
  
    #wrapper.toggled #sidebar-wrapper {
        margin-left: -250px;
    }
    
    #wrapper.toggled #page-content-wrapper {
        margin-left: 0;
    }
}

/* Enhanced Dashboard Cards */
.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 25px;
    border: none;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.dashboard-card .card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-weight: 600;
    padding: 15px 20px;
    border: none;
    font-size: 1.1rem;
}

.dashboard-card .card-body {
    padding: 25px;
}

/* User dropdown styling */
.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 10px 0;
    margin-top: 10px;
}

.dropdown-item {
    padding: 8px 20px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(27, 60, 95, 0.1);
}

.dropdown-divider {
    margin: 5px 0;
}

/* Enhanced table styling */
.table-container {
    overflow-x: auto;
    border-radius: 10px;
    background: white;
}

.high-tech-table {
    margin-bottom: 0;
    width: 100%;
}

.high-tech-table thead th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding: 12px 15px;
}

.high-tech-table thead th:first-child {
    border-top-left-radius: 10px;
}

.high-tech-table thead th:last-child {
    border-top-right-radius: 10px;
}

/* DataTables customization */
.dataTables_wrapper .dataTables_length, 
.dataTables_wrapper .dataTables_filter {
    padding: 15px 5px;
}

.dataTables_wrapper .dataTables_info, 
.dataTables_wrapper .dataTables_paginate {
    padding: 15px 5px;
}

.table-container {
    padding: 0 10px;
}

.dataTables_wrapper .table {
    margin: 0 !important;
}

.dataTables_wrapper .table th,
.dataTables_wrapper .table td {
    padding: 12px 10px;
}

/* Table cell text handling */
.no-wrap {
    white-space: nowrap;
    overflow: visible;
    min-width: 150px;
}

.allow-wrap {
    word-break: break-word;
}

/* Action button styles */
.action-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 4px !important;
}

/* Animation for cards */
.dashboard-card, .stat-card {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Solid navy text for SCA Contact Info */
.card-title-navy {
    color: #193859;
    font-weight: 600;
    margin-bottom: 0;
}

/* Compact dashboard styles */
.compact-dashboard .dashboard-card {
    margin-bottom: 1rem !important;
}

.compact-dashboard .card-body {
    padding: 0.75rem !important;
}

.compact-dashboard .stat-card {
    padding: 0.75rem !important;
    margin-bottom: 0.5rem !important;
}

.compact-dashboard .mb-4 {
    margin-bottom: 0.75rem !important;
}

.compact-dashboard .mb-5 {
    margin-bottom: 1rem !important;
}

.compact-dashboard .py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.compact-dashboard .nav-tabs {
    margin-bottom: 0.75rem !important;
}

.compact-dashboard .table td, 
.compact-dashboard .table th {
    padding: 0.5rem !important;
}

.compact-dashboard .upcoming-meeting {
    display: flex;
    flex-direction: column;
}

.compact-dashboard .upcoming-meeting .date-time {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Stat card value section fixed height */
.stat-card .stat-value,
.stat-card .upcoming-meeting {
    height: 60px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Make stat labels align */
.stat-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stat-label {
    margin-top: auto;
}

.upcoming-meeting {
    display: flex;
    flex-direction: column;
}

.upcoming-meeting .date-time {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Optimized table column widths */
#contactTable th,
#contactTable td {
    white-space: normal;
    padding: 0.5rem 0.75rem;
}

#contactTable th:nth-child(1), /* ID */
#contactTable td:nth-child(1) {
    width: 50px;
    min-width: 50px;
}

#contactTable th:nth-child(2), /* School Name */
#contactTable td:nth-child(2) {
    width: auto;
    min-width: 180px;
}

#contactTable th:nth-child(3), /* Name */
#contactTable td:nth-child(3) {
    width: auto;
    min-width: 150px;
}

#contactTable th:nth-child(4), /* Email */
#contactTable td:nth-child(4) {
    width: auto;
    min-width: 200px;
}

#contactTable th:nth-child(5), /* Phone */
#contactTable td:nth-child(5) {
    width: auto;
    min-width: 130px;
}

#contactTable th:nth-child(6), /* Students */
#contactTable td:nth-child(6),
#contactTable th:nth-child(7), /* Staff */
#contactTable td:nth-child(7) {
    width: auto;
    min-width: 90px;
    text-align: center;
}

#contactTable th:nth-child(8), /* Appointment */
#contactTable td:nth-child(8) {
    width: auto;
    min-width: 160px;
}

#contactTable th:nth-child(9), /* Date Added */
#contactTable td:nth-child(9) {
    width: auto;
    min-width: 110px;
}

#contactTable th:nth-child(10), /* Actions */
#contactTable td:nth-child(10) {
    width: auto;
    min-width: 90px;
    text-align: center;
}

/* Allow multi-line text in cells when needed */
#contactTable td.text-truncate {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Allow cells to expand when needed */
#contactTable td.allow-wrap {
    white-space: normal;
    word-break: break-word;
}

/* Table container for better responsiveness */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 0;
    border-radius: 0.25rem;
}

/* Ensure the table takes full width of container */
.table-container table {
    width: 100%;
    table-layout: auto;
}

/* Improve table appearance */
.high-tech-table {
    margin-bottom: 0;
}

.high-tech-table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.high-tech-table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}
