/* Projects Section Styles */
/* Global body styles now in global.css */



.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.projects-header h1 {
    color: #333;
    font-size: 2.5em;
    font-weight: 700;
    margin: 0;
    font-family: 'Inter Tight', sans-serif;
}

.add-project-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.add-project-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.add-project-button i {
    font-size: 18px;
}

/* Add Project button in global header */
.section-buttons .add-project-button {
    background: transparent;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: lighter;
    cursor: pointer;
    display: flex;
    border: 0.5px solid #c1c1c1;
    color: #6c757d;
    align-items: center;
    gap: 6px;
    padding: 4px;
    padding-right: 6px;
    transition: all 0.3s ease;
    box-shadow: none;
}

.section-buttons .add-project-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.section-buttons .add-project-button i {
    font-size: 16px;
}

#projects-section .table-container {
    margin-bottom: 20px !important;
    background: transparent;
    box-shadow: none;
    border: 0.5px solid #c1c1c1;
    overflow-x: auto;
}

#projects-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#projects-table th,
#projects-table td {
    text-align: left;
    vertical-align: top;
}

#projects-table th {
    background: none!important;
    color: #495057;
    font-weight: lighter;
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    height: 20px;
    padding: 5px;
    z-index: 10;
    border: none;
}

/* Description column max-width */
#projects-table td:nth-child(2) {
    max-width: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
}

#projects-table tbody tr {
    transition: all 0.2s ease;
    cursor: grab;
}

#projects-table tbody tr:active {
    cursor: grabbing;
}


#projects-table tbody tr:nth-child(odd) {
    background-color: #fafafa;
}
#projects-table tbody tr:nth-child(even) {
    background-color: #f8f9ff;
}

#projects-table tbody tr:hover {
    background-color: #e3f2fd;
    transform: translateY(-1px);

}


/* Status styling */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10!important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-completed {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-on-hold {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Actions column */
.actions-cell {
    white-space: nowrap;
    width: 1%;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

table#projects-table .status-badge{
    padding: 2px 12px;
}

table#projects-table .action-btn {
    padding: 5px;
    background: transparent;
    border: #f1f1f1 thin solid;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    margin: 0;
    height: 25px;
}



table#projects-table .action-btn i{
    margin: 0;
}

.action-btn:last-child {
    margin-right: 0;
}

.action-btn.edit {
    color: #007bff;
}

.action-btn.edit:hover {
    opacity: 0.7;
}

.action-btn.delete {
    color: #dc3545;
}

.action-btn.delete:hover {
    opacity: 0.7;
}

/* Modal Styles - using global modal styles from global.css */

.project-form {
    padding: 0 24px 24px 24px;
}

/* Form actions and buttons - using global styles from global.css */

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 15px;
    }

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .projects-header h1 {
        font-size: 2em;
    }

    .table-container {
        margin-top: 15px;
    }

    #projects-table th,
    #projects-table td {
        padding: 12px 8px;
        font-size: 13px;
    }
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #495057;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 30px;
}

/* Error state */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

/* Drag and drop styles */
.drag-placeholder {
    opacity: 0.3;
    background-color: #e3f2fd;
}

.drag-ghost-wrapper {
    opacity: 0.85;
    filter: drop-shadow(0 4px 16px rgba(102, 126, 234, 0.3));
}

.drag-ghost {
    background-color: white;
}

/* Drop indicator line */
.drop-indicator {
    position: fixed;
    height: 3px;
    background-color: #667eea;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.6);
    pointer-events: none;
    z-index: 10000;
    border-radius: 2px;
    animation: dropIndicatorPulse 1s ease-in-out infinite;
}

@keyframes dropIndicatorPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(102, 126, 234, 0.6);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 12px rgba(102, 126, 234, 0.8);
    }
}
