/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #333;
}

/* Auth page styles */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f8f9fa;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #667eea;
    border-bottom: 2px solid #667eea;
}

.auth-content {
    position: relative;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

/* Password input styles */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    flex: 1;
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.password-toggle:hover {
    background-color: #f8f9fa;
}

.eye-icon {
    font-size: 1.2rem;
    user-select: none;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.btn-icon {
    padding: 0.25rem;
    min-width: 32px;
    height: 32px;
    font-size: 1rem;
    border-radius: 4px;
    background: transparent;
    border: 1px solid #dee2e6;
    color: #6c757d;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

.task-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.task-card:hover .task-actions {
    opacity: 1;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Dashboard styles */
.dashboard {
    min-height: 100vh;
    background: #f8f9fa;
}

.dashboard-header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Loading styles */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-container p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

.header-left .logo {
    font-size: 1.8rem;
    margin: 0;
    margin-right: 2rem;
}

.project-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.project-selector select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    min-width: 200px;
}

.header-right .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-main {
    display: flex;
    min-height: calc(100vh - 80px);
}

.dashboard-sidebar {
    width: 300px;
    background: white;
    border-right: 1px solid #e9ecef;
    padding: 2rem;
}

.sidebar-section h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

.project-list,
.pipeline-list {
    margin-bottom: 1rem;
}

.project-item {
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    border: 1px solid #e9ecef;
}

.pipeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    border: 1px solid #e9ecef;
}

.project-item:hover,
.pipeline-item:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

.project-item.active,
.pipeline-item.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.project-info h4,
.pipeline-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.project-info p,
.pipeline-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.dashboard-content {
    flex: 1;
    padding: 2rem;
}

.content-header {
    margin-bottom: 2rem;
}

.pipeline-selector,
.pipeline-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.pipeline-controls {
    justify-content: space-between;
    width: 100%;
}

.pipeline-controls h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.pipeline-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pipeline-item:hover .pipeline-actions {
    opacity: 1;
}

.pipeline-item.active .pipeline-actions {
    opacity: 1;
}



.pipeline-selector select {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 200px;
}

/* Kanban board styles */
.kanban-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.status-column {
    min-width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.status-header {
    padding: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-header-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



.status-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.task-count {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-content {
    padding: 1rem;
}

.task-list {
    min-height: 100px;
    margin-bottom: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.task-list.drag-over {
    background: #f0f8ff;
    border: 2px dashed #667eea;
}

.task-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: grab;
    transition: all 0.3s ease;
}

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

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

.task-header h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #333;
}

.task-description {
    margin-bottom: 0.75rem;
}

.task-description p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
}



/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-large {
    max-width: 700px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Notification styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
    min-width: 300px;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.notification-message {
    flex: 1;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6c757d;
    margin-left: 1rem;
}

.notification-close:hover {
    color: #333;
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-warning {
    border-left: 4px solid #f59e0b;
}

.notification-info {
    border-left: 4px solid #3b82f6;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #333;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* Status management styles */
.statuses-section {
    margin-top: 2rem;
}

.statuses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.statuses-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.statuses-list {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    cursor: move;
    transition: all 0.3s ease;
}

.status-item:last-child {
    border-bottom: none;
}

.status-item:hover {
    background: #f8f9fa;
}

.status-item.dragging {
    opacity: 0.5;
}

.status-item.drag-over {
    background: #e3f2fd;
    border-top: 2px solid #2196f3;
}

.status-item-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.status-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
}

.status-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.status-name {
    font-weight: 500;
    color: #333;
}

.system-badge {
    font-size: 0.75rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    align-self: flex-start;
}

.status-item-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-item:hover .status-item-actions {
    opacity: 1;
}

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

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .dashboard-main {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .kanban-board {
        flex-direction: column;
    }
    
    .status-column {
        min-width: auto;
    }
    
    .pipeline-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pipeline-selector select {
        min-width: auto;
    }
} 