/* AMT Production - Custom Styles */

/* Fullscreen reset and base styles */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    background: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    min-height: 100dvh; /* For newer browsers with dynamic viewport */
    display: flex;
    flex-direction: column;
}

/* Fullscreen container styles */
.fullscreen-container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.main-container {
    background: white;
    border-radius: 0;
    box-shadow: none;
    flex: 1;
    width: 100%;
    max-width: 100%;
}

.brand-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 0;
}

.results-container {
    background: white;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
}

.selected-people {
    cursor: pointer;
    transition: all 0.2s;
    min-height: 45px;
}

.selected-people:hover {
    border-color: #007bff;
}

.total-badge {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Fix for dropdown positioning */
.dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
}

.person-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Result item styling - matching the requested style */
.result-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
    transition: all 0.2s ease;
}

.result-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.result-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.result-date {
    font-size: 1.1rem;
    font-weight: bold;
    color: #007bff;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.result-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.result-field strong {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
}

.result-field span {
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 500;
}

.result-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.result-actions .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 4px;
}

/* Fullscreen responsive styles */
@media (max-width: 576px) {
    .result-grid {
        grid-template-columns: 1fr;
    }

    .result-actions {
        justify-content: center;
    }

    .result-actions .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .fullscreen-container {
        padding: 0;
    }
    
    .main-container,
    .results-container {
        margin: 0;
        border-radius: 0;
    }
    
    .brand-header {
        padding: 1rem !important;
    }
}

@media (max-width: 768px) {
    .fullscreen-container {
        padding: 0;
    }
    
    .main-container,
    .results-container {
        border-radius: 0;
        box-shadow: none;
    }
}

@media (max-width: 992px) {
    .main-container,
    .results-container {
        max-width: 100%;
        width: 100%;
    }
}

/* Landscape mobile and small tablets */
@media (max-height: 500px) and (orientation: landscape) {
    .brand-header {
        padding: 0.75rem !important;
    }
    
    .brand-header h1 {
        font-size: 1.5rem;
    }
}

/* Remove any remaining margins on fullscreen */
@media screen {
    .container-fluid,
    .row,
    .col-12,
    .col-lg-8,
    .col-xl-6 {
        margin: 0;
        padding: 0;
        max-width: 100%;
    }
}