/* Assignment Planner Styles */
.assignment-planner-container {
    padding: 40px 0;
}

.assignment-planner-header {
    text-align: center;
    margin-bottom: 40px;
    background-color: #4CAF50;
    padding: 35px 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    color: white;
}

.assignment-planner-header .icon-container {
    background-color: rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.assignment-planner-header .icon {
    color: white;
    font-size: 40px;
}

.assignment-planner-header .page-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: white;
    text-transform: uppercase;
}

.assignment-planner-header .page-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
}

.assignment-planner-tool {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

/* Improved Mobile Styles */
@media (max-width: 992px) {
    .assignment-planner-tool {
        grid-template-columns: 1fr;
    }
    
    .assignment-planner-header {
        margin-left: 15px;
        margin-right: 15px;
        padding: 25px 15px;
    }
    
    .assignment-planner-header .icon-container {
        width: 60px;
        height: 60px;
    }
    
    .assignment-planner-header .icon {
        font-size: 30px;
    }
    
    .assignment-planner-header .page-title {
        font-size: 24px;
    }
    
    .assignment-form,
    .assignment-list {
        margin-left: 15px;
        margin-right: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .assignment-planner-header {
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .assignment-form,
    .assignment-list {
        margin-left: 10px;
        margin-right: 10px;
        border-radius: 4px;
    }
    
    form {
        max-width: 100%;
    }
    
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .assignment-planner-container {
        padding: 0;
    }
    
    .assignment-planner-header .page-title {
        font-size: 22px;
    }
    
    .assignment-planner-header .page-description {
        font-size: 14px;
    }
    
    .assignment-form h2,
    .assignment-list h2 {
        font-size: 20px;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-controls select {
        width: 100%;
    }
    
    #assignments-table th,
    #assignments-table td {
        padding: 8px 6px;
        font-size: 14px;
    }
    
    .assignment-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-edit, .btn-delete, .btn-view {
        width: 100%;
        text-align: center;
    }
    
    /* Fix for mobile horizontal scroll issue */
    #assignments-table-container {
        width: 100%;
        overflow-x: auto;
    }
    
    #assignments-table {
        min-width: 100%;
        table-layout: fixed;
    }
    
    /* Fix for form fields that may be too wide */
    input, select, textarea {
        max-width: 100%;
    }
    
    /* Add more space between form fields */
    .form-group {
        margin-bottom: 20px;
    }
    
    /* Make the add button more prominent */
    .btn-primary {
        margin-top: 10px;
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
}

/* Assignment Modal Mobile Adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 15px;
    }
    
    .assignment-details dt {
        margin-top: 12px;
    }
    
    .assignment-details dd {
        margin-bottom: 12px;
    }
}

.assignment-form {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.assignment-form h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    margin-top: 20px;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #45a049;
}

.assignment-list {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.assignment-list h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.filter-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#assignments-table {
    width: 100%;
    border-collapse: collapse;
}

#assignments-table th {
    background-color: #f2f2f2;
    text-align: left;
    padding: 12px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}

#assignments-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    color: #555;
}

#assignments-table tr:hover {
    background-color: #f5f5f5;
}

.no-assignments-message td {
    text-align: center;
    padding: 30px 12px;
    color: #888;
    font-style: italic;
}

.assignment-actions {
    display: flex;
    gap: 10px;
}

.btn-edit, .btn-delete, .btn-view {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-edit {
    background-color: #2196F3;
    color: white;
}

.btn-edit:hover {
    background-color: #0b7dda;
}

.btn-delete {
    background-color: #f44336;
    color: white;
}

.btn-delete:hover {
    background-color: #d32f2f;
}

.btn-view {
    background-color: #9e9e9e;
    color: white;
}

.btn-view:hover {
    background-color: #7d7d7d;
}

.priority-high {
    color: #f44336;
    font-weight: 600;
}

.priority-medium {
    color: #ff9800;
    font-weight: 600;
}

.priority-low {
    color: #4CAF50;
    font-weight: 600;
}

.status-pending {
    color: #2196F3;
    font-weight: 600;
}

.status-completed {
    color: #4CAF50;
    font-weight: 600;
}

/* Assignment details modal */
.assignment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 25px;
    width: 60%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}

.assignment-details dt {
    font-weight: 600;
    color: #555;
    margin-top: 15px;
}

.assignment-details dd {
    margin-left: 0;
    margin-bottom: 15px;
    color: #333;
}

.notes-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.notes-section h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.notes-content {
    white-space: pre-line;
    color: #555;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    min-height: 80px;
}

/* Mobile hidden columns class */
.mobile-hidden {
    display: none !important;
}

/* Touch active state for form elements */
.touch-active {
    background-color: #f0f0f0;
    border-color: #4CAF50;
}

/* Prevent text from overflowing cells */
#assignments-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Make action buttons more touch-friendly */
@media (max-width: 600px) {
    .btn-view, .btn-edit, .btn-delete {
        padding: 10px 8px;
        margin-bottom: 5px;
        display: block;
    }
    
    input[type="date"] {
        -webkit-appearance: none;
        height: 40px;
    }
    
    /* Improve form field touch areas */
    label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        height: 44px;
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    textarea {
        height: 80px !important;
    }
}

/* Load view styles */
@media (max-width: 480px) {
    .assignment-planner-header {
        padding: 20px 10px;
    }
    
    .assignment-planner-header .icon-container {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .assignment-planner-header .icon {
        font-size: 24px;
    }
    
    .assignment-form,
    .assignment-list {
        padding: 15px 10px;
    }
}

/* Instructions Section Styles */
.assignment-planner-instructions {
    padding: 30px 25px;
    background-color: #f7f9fc;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.instructions-title {
    color: #333;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.instructions-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #4CAF50;
    margin: 12px auto 0;
}

.instructions-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.instructions-content > p {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.step {
    background-color: white;
    border-radius: 8px;
    padding: 20px 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step h3 {
    color: #4CAF50;
    font-size: 17px;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 8px;
}

.step h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4CAF50;
}

.step p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Mobile Styles for Instructions */
@media (max-width: 768px) {
    .assignment-planner-instructions {
        padding: 25px 15px;
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .instructions-title {
        font-size: 22px;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .step {
        padding: 15px 12px;
    }
    
    .step h3 {
        font-size: 16px;
    }
    
    .step p {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .assignment-planner-instructions {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .assignment-planner-instructions {
        padding: 20px 12px;
        margin-left: 10px;
        margin-right: 10px;
        border-radius: 6px;
    }
    
    .instructions-title {
        font-size: 20px;
    }
    
    .instructions-content > p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .step {
        padding: 12px 10px;
    }
} 