/* Lists Page Styles */

.lists-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.lists-controls {
    margin-bottom: 0;
}

.lists-controls .lists-search-wrapper {
    flex: 0 1 600px;
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
}

.lists-controls .lists-export-btn {
    flex-shrink: 0;
}

.lists-search-wrapper {
    position: relative;
    max-width: 600px;
    display: flex;
    align-items: center;
}

.lists-search-wrapper .search-icon {
    position: absolute;
    left: 1rem;
    color: #666666;
    pointer-events: none;
    z-index: 1;
}

.lists-search {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 3.5rem;
    border: 2px solid var(--accent-color, #0066cc);
    border-radius: 8px;
    font-size: 1rem;
    background-color: #ffffff;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.lists-search:focus {
    outline: none;
    border-color: var(--accent-color-dark, #0052a5);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.lists-search::placeholder {
    color: #999999;
}

.search-clear-btn {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 0.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1;
}

.search-clear-btn:hover {
    background-color: #f0f0f0;
    color: #2c3e50;
}

.search-clear-btn i {
    font-size: 0.875rem;
}

.lists-no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: #666666;
    display: none;
}

.lists-no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #999999;
}

.lists-no-results p {
    font-size: 1.2rem;
    margin: 0;
}

.lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.list-box {
    background-color: #ffffff;
    border: 2px solid var(--accent-color, #0066cc);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.list-box:hover {
    border-color: var(--accent-color-dark, #0052a5);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.2);
    transform: translateY(-2px);
}

.list-box-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.list-box-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-color-dark, #003366);
    margin: 0;
    flex: 1;
}

.list-box-active-badge {
    background-color: var(--accent-color, #0066cc);
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 1rem;
}

.list-box-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-box-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.list-box-section-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4d4d4d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.list-box-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.list-box-step {
    background-color: var(--accent-color-light, #e6f2ff);
    color: var(--accent-color-dark, #003366);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--accent-color, #0066cc);
}

.list-box-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.list-box-option {
    background-color: #f5f5f5;
    color: #2c3e50;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #d0d0d0;
}

.list-box-option.active {
    background-color: #22c55e;
    color: #ffffff;
    border-color: #16a34a;
}

/* Tablet Mode Styles */
body.tablet-mode .lists-container {
    padding: 3rem;
}

body.tablet-mode .lists-header .page-header-title {
    font-size: 3.5rem;
}

body.tablet-mode .page-header-subtitle {
    font-size: 1.5rem;
}

body.tablet-mode .lists-grid {
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 3rem;
}

body.tablet-mode .list-box {
    padding: 2rem;
    border-radius: 16px;
}

body.tablet-mode .list-box-name {
    font-size: 1.75rem;
}

body.tablet-mode .list-box-active-badge {
    font-size: 1.25rem;
    padding: 0.6rem 1.2rem;
}

body.tablet-mode .list-box-section-label {
    font-size: 1.25rem;
}

body.tablet-mode .list-box-step,
body.tablet-mode .list-box-option {
    font-size: 1.15rem;
    padding: 0.6rem 1rem;
}

body.tablet-mode .lists-search-wrapper {
    max-width: 800px;
    margin: 3rem auto;
}

body.tablet-mode .lists-search {
    padding: 1.25rem 3.5rem 1.25rem 4.5rem;
    font-size: 1.5rem;
    border-radius: 12px;
}

body.tablet-mode .lists-search-wrapper .search-icon {
    left: 1.5rem;
    width: 28px;
    height: 28px;
}

body.tablet-mode .search-clear-btn {
    right: 1rem;
    padding: 0.75rem;
}

body.tablet-mode .search-clear-btn i {
    font-size: 1.25rem;
}

body.tablet-mode .lists-no-results {
    padding: 4rem 2rem;
}

body.tablet-mode .lists-no-results i {
    font-size: 4rem;
}

body.tablet-mode .lists-no-results p {
    font-size: 1.75rem;
}

/* List Detail Modal Styles */
.list-detail-modal {
    width: 100%;
}

.list-options-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background-color: #ffffff;
}

.list-options-table thead {
    background-color: var(--accent-color-light, #e6f2ff);
}

.list-options-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--accent-color-dark, #003366);
    border-bottom: 2px solid var(--accent-color, #0066cc);
    font-size: 0.95rem;
}

.list-options-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.list-options-table tbody tr:hover {
    background-color: #f9f9f9;
}

.list-options-table tbody tr:last-child td {
    border-bottom: none;
}

.option-name-input,
.option-date-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.option-name-input:focus,
.option-date-input:focus {
    outline: none;
    border-color: var(--accent-color, #0066cc);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.option-status {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.option-status.active {
    background-color: #22c55e;
    color: #ffffff;
}

.option-status.inactive {
    background-color: #ef4444;
    color: #ffffff;
}

.add-option-btn {
    background-color: var(--accent-color, #0066cc);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-option-btn:hover {
    background-color: var(--accent-color-dark, #0052a5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.add-option-btn i {
    font-size: 0.9rem;
}

/* Tablet Mode Styles for Modal */
body.tablet-mode .list-options-table th {
    font-size: 1.5rem;
    padding: 1.5rem;
}

body.tablet-mode .list-options-table td {
    font-size: 1.5rem;
    padding: 1.5rem;
}

body.tablet-mode .option-name-input,
body.tablet-mode .option-date-input {
    font-size: 1.5rem;
    padding: 0.75rem;
}

body.tablet-mode .option-status {
    font-size: 1.25rem;
    padding: 0.6rem 1.2rem;
}

body.tablet-mode .add-option-btn {
    font-size: 1.75rem;
    padding: 1.5rem 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lists-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .lists-container {
        padding: 1rem;
    }
    
    .page-header-title {
        font-size: 2rem;
    }
    
    .list-options-table {
        font-size: 0.85rem;
    }
    
    .list-options-table th,
    .list-options-table td {
        padding: 0.75rem 0.5rem;
    }
}
