/* McGraw Hill Assignment Manager Styles */

/* Two-Column Layout */
.assignment-manager-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    margin-top: 24px;
}

/* Sidebar Styles */
.assignment-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

.sidebar-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

/* McGraw Hill Teal Color Palette */
:root {
    --mcgraw-teal: #00758D;
    --mcgraw-teal-dark: #005A6D;
    --mcgraw-teal-light: #E6F3F5;
}

/* Button Styles */
.btn-outline {
    background: white;
    border: 2px solid var(--mcgraw-teal);
    color: var(--mcgraw-teal);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--mcgraw-teal-light);
}

.btn-teal {
    background: var(--mcgraw-teal);
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-teal:hover {
    background: var(--mcgraw-teal-dark);
}

.btn-outline-teal {
    background: white;
    border: 1px solid var(--mcgraw-teal);
    color: var(--mcgraw-teal);
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline-teal:hover:not(:disabled) {
    background: var(--mcgraw-teal-light);
}

.btn-outline-teal:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-full {
    width: 100%;
}

/* Main Content Area */
.assignment-main-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Sync Section */
.sync-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 24px;
}

.sync-section-header {
    margin-bottom: 16px;
}

.sync-section-title {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.sync-section-description {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Table Styles */
.sync-table-wrapper {
    margin-top: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.sync-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table-header-teal {
    background: var(--mcgraw-teal);
    color: white;
    text-align: left;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    border: none;
}

.table-header-teal.checkbox-col {
    width: 50px;
    text-align: center;
    padding: 12px 8px;
}

.sync-table tbody tr {
    border-bottom: 1px solid #eee;
}

.sync-table tbody tr:last-child {
    border-bottom: none;
}

.sync-table tbody td {
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
}

.sync-table tbody td.checkbox-col {
    width: 50px;
    text-align: center;
    padding: 12px 8px;
}

.table-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--mcgraw-teal);
}

.assignment-row-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--mcgraw-teal);
}

/* Table Footer */
.table-footer {
    padding: 12px 16px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
    font-size: 13px;
    color: #666;
}

/* Sync Footer */
.sync-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.checkbox-label-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.checkbox-label-inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--mcgraw-teal);
}

/* Assignment Row with Icon */
.assignment-row-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.assignment-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.assignment-icon-circle-slash {
    width: 20px;
    height: 20px;
    border: 2px solid #666;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.assignment-icon-circle-slash::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #666;
    transform: translateY(-50%) rotate(-45deg);
}

/* Empty States */
.empty-state-table {
    padding: 40px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .assignment-manager-layout {
        grid-template-columns: 1fr;
    }
    
    .assignment-sidebar {
        grid-template-columns: 1fr 1fr;
        flex-direction: row;
    }
}

@media (max-width: 640px) {
    .assignment-sidebar {
        flex-direction: column;
    }
    
    .sync-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .btn-outline-teal {
        width: 100%;
    }
}
