/* Academic Calendar Pro Frontend Styles */

.acp-calendar-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.acp-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.acp-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: 600;
}

.acp-header p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.9;
}

.acp-main-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    min-height: 600px;
}

.acp-sidebar {
    background: #f8f9fa;
    padding: 25px;
    border-right: 1px solid #e9ecef;
}

.acp-calendar-area {
    padding: 25px;
}

.acp-form-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.acp-form-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.acp-form-group {
    margin-bottom: 15px;
}

.acp-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.acp-form-group input,
.acp-form-group select,
.acp-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.acp-form-group input:focus,
.acp-form-group select:focus,
.acp-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.acp-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    display: inline-block;
}

.acp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.acp-btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.acp-btn-success {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
}

.acp-btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.acp-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.acp-calendar {
    background: white;
}

.acp-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.acp-calendar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.acp-calendar-nav button {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.acp-calendar-nav button:hover {
    background: #5a6fd8;
}

.acp-month-year {
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
}

.acp-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.acp-day-header {
    background: #343a40;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.acp-calendar-day {
    background: white;
    min-height: 120px;
    padding: 8px;
    position: relative;
    transition: background-color 0.2s;
}

.acp-calendar-day:hover {
    background: #f8f9fa;
}

.acp-calendar-day.other-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.acp-calendar-day.today {
    background: #e3f2fd;
    border: 2px solid #2196f3;
}

.acp-day-number {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.acp-assignment {
    background: #667eea;
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-bottom: 2px;
    cursor: pointer;
    transition: transform 0.2s;
    display: block;
    text-decoration: none;
    line-height: 1.2;
}

.acp-assignment:hover {
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

.acp-assignment.psychology { background: #ff6b6b; }
.acp-assignment.sociology { background: #4ecdc4; }
.acp-assignment.statistics { background: #45b7d1; }
.acp-assignment.humanities { background: #96ceb4; }
.acp-assignment.other { background: #ffa726; }

.acp-assignment-list {
    max-height: 400px;
    overflow-y: auto;
}

.acp-assignment-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: box-shadow 0.2s;
}

.acp-assignment-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.acp-assignment-item.priority-high {
    border-left: 4px solid #ff6b6b;
}

.acp-assignment-item.priority-urgent {
    border-left: 4px solid #dc3545;
    background: #fff5f5;
}

.acp-assignment-item.priority-low {
    border-left: 4px solid #6c757d;
}

.acp-assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.acp-status-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.acp-status-badge.status-pending {
    background: #ffeaa7;
    color: #d63031;
}

.acp-status-badge.status-in_progress {
    background: #74b9ff;
    color: white;
}

.acp-status-badge.status-completed {
    background: #00b894;
    color: white;
}

.acp-status-badge.status-late {
    background: #e17055;
    color: white;
}

.acp-assignment-notes {
    font-size: 11px;
    color: #666;
    font-style: italic;
    margin-top: 4px;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.acp-assignment-actions {
    margin-top: 8px;
}

.acp-assignment-actions select {
    font-size: 11px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.acp-help-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #17a2b8;
}

/* Course Management Styles */
.acp-course-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s;
}

.acp-course-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.acp-course-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.acp-course-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

.acp-course-details {
    flex: 1;
}

.acp-course-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 2px;
}

.acp-course-code {
    font-size: 12px;
    color: #666;
    font-family: monospace;
    background: #f8f9fa;
    padding: 1px 4px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 2px;
}

.acp-course-instructor {
    font-size: 11px;
    color: #888;
    font-style: italic;
}

.acp-no-courses {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

.acp-add-course-form {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* Syllabus Parser Styles */
.acp-parsed-preview {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.acp-parsed-preview h4 {
    margin: 0 0 10px 0;
    color: #2e7d32;
}

.acp-parsed-preview ul {
    margin: 0;
    padding-left: 20px;
}

.acp-parsed-preview li {
    margin-bottom: 5px;
    color: #2e7d32;
}

/* Enhanced form styles */
.acp-form-group input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
}

.acp-form-group input[type="color"]:focus {
    border-color: #667eea;
}

.acp-assignment-info {
    flex: 1;
}

.acp-assignment-subject {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.acp-assignment-title {
    color: #666;
    margin-bottom: 2px;
    font-size: 13px;
}

.acp-assignment-details {
    font-size: 11px;
    color: #999;
}

.acp-subject-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.acp-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.acp-color-box {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

.acp-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.acp-message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.acp-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.acp-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 968px) {
    .acp-main-content {
        grid-template-columns: 1fr;
    }
    
    .acp-calendar-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .acp-calendar-grid {
        font-size: 12px;
    }
    
    .acp-calendar-day {
        min-height: 80px;
        padding: 4px;
    }
    
    .acp-assignment {
        font-size: 9px;
        padding: 2px 4px;
    }
    
    .acp-sidebar {
        padding: 15px;
    }
    
    .acp-calendar-area {
        padding: 15px;
    }
}

/* WordPress Admin Styles */
.acp-admin-page {
    background: white;
    margin: 20px 0;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.acp-admin-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.acp-admin-header h1 {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.acp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.acp-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.acp-stat-number {
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 5px;
}

.acp-stat-label {
    font-size: 14px;
    opacity: 0.9;
}