* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    padding: 20px;
}

header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    color: #333;
    font-size: 32px;
    font-weight: 700;
}

.header-info {
    display: flex;
    gap: 30px;
    align-items: center;
    color: #666;
    font-size: 16px;
}

.date {
    font-weight: 500;
}

.greeting {
    font-style: italic;
}

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

.column {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    min-height: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.column h2 {
    font-size: 18px;
    font-weight: 600;
    color: #555;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.task-list {
    min-height: 400px;
}

.task-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: move;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #667eea;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.task-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.task-card.manuscript {
    border-left-color: #4CAF50;
}

.task-card.sasi {
    border-left-color: #2196F3;
}

.task-card.precision-ed {
    border-left-color: #FF9800;
}

.task-card.research {
    border-left-color: #9C27B0;
}

.task-card.tech {
    border-left-color: #00BCD4;
}

.task-card.admin {
    border-left-color: #607D8B;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.task-title {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    cursor: pointer;
    flex-grow: 1;
}

.priority-selector {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(102, 126, 234, 0.1);
    transition: all 0.2s ease;
}

.priority-selector:hover {
    background: rgba(102, 126, 234, 0.3);
    transform: scale(1.1);
}

.task-files {
    font-size: 11px;
    color: #666;
    margin-left: 8px;
}

.task-description {
    color: #666;
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.task-category {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #666;
    font-weight: 500;
}

.task-priority {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.priority-low {
    background: #e8f5e9;
    color: #4CAF50;
}

.priority-medium {
    background: #fff3e0;
    color: #FF9800;
}

.priority-high {
    background: #fce4ec;
    color: #E91E63;
}

.priority-urgent {
    background: #ff1744;
    color: white;
}

.task-due {
    font-size: 11px;
    color: #999;
}

.add-task-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #667eea;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.add-task-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
    background: #5a6fd4;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.modal h2 {
    margin-bottom: 20px;
    color: #333;
}

#taskForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#taskForm input,
#taskForm textarea,
#taskForm select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

#taskForm textarea {
    min-height: 80px;
    resize: vertical;
}

#taskForm button {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

#taskForm button:hover {
    background: #5a6fd4;
}

/* Task Details Modal */
.task-details-modal .modal-content {
    max-width: 600px;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.detail-section textarea,
.detail-section input,
.detail-section select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.detail-section textarea {
    min-height: 100px;
    resize: vertical;
}

.detail-buttons {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 20px;
}

.detail-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-buttons button:first-child {
    background: #667eea;
    color: white;
    flex-grow: 1;
}

.detail-buttons button:first-child:hover {
    background: #5a6fd4;
}

.detail-buttons button:nth-child(2) {
    background: #00BCD4;
    color: white;
}

.detail-buttons button:nth-child(2):hover {
    background: #00ACC1;
}

.delete-btn {
    background: #ff4444;
    color: white;
}

.delete-btn:hover {
    background: #cc0000;
}

/* File Actions */
.file-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.file-btn {
    flex: 1;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.upload-btn {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.upload-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.download-btn {
    background: rgba(0, 188, 212, 0.1);
    color: #00BCD4;
}

.download-btn:hover {
    background: rgba(0, 188, 212, 0.2);
    transform: translateY(-1px);
}

/* File Modal */
.file-modal .modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .kanban-container {
        grid-template-columns: 1fr;
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}