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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

/* Container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Alert styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Login page styles */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-form {
    margin-top: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Dashboard styles */
.dashboard-container {
    min-height: 100vh;
}

.dashboard-header {
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.dashboard-header nav a {
    text-decoration: none;
    color: #333;
}

.dashboard-content {
    padding: 20px;
}

/* Dashboard grid styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.dashboard-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-section h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
}

/* Activity styles */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.activity-icon {
    width: 24px;
    height: 24px;
    background-color: #e9ecef;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-content {
    flex-grow: 1;
}

.activity-content p {
    margin: 0;
    color: #333;
}

.activity-time {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 5px;
}

/* Stats grid styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    margin: 0;
    color: #666;
    font-size: 14px;
    font-weight: normal;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
}

.stat-number.text-danger {
    color: #dc3545;
}

/* Task project styles */
.task-project {
    margin: 10px 0;
}

.task-project a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.task-project a:hover {
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* General styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
header {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    color: #333;
}

nav {
    margin-top: 20px;
}

nav a {
    color: #666;
    text-decoration: none;
    margin-right: 20px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #f0f0f0;
}

nav a.active {
    color: #007bff;
    font-weight: bold;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

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

.btn-secondary:hover {
    background-color: #545b62;
}

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

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

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-actions {
    margin-top: 20px;
    text-align: right;
}

.form-actions button {
    margin-left: 10px;
}

/* Modal styles */
.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 {
    background-color: #fff;
    margin: 100px auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Project page styles */
.project-header {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-info {
    margin-bottom: 20px;
}

.project-description {
    color: #666;
    margin: 10px 0;
}

.project-meta {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 14px;
}

.project-actions {
    display: flex;
    gap: 10px;
}

.project-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Tasks section styles */
.tasks-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tasks-list {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.task-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
}

.task-card.priority-urgent {
    border-left: 4px solid #dc3545;
}

.task-card.priority-high {
    border-left: 4px solid #fd7e14;
}

.task-card.priority-medium {
    border-left: 4px solid #ffc107;
}

.task-card.priority-low {
    border-left: 4px solid #28a745;
}

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

.task-header h3 {
    margin: 0;
    color: #333;
}

.task-status {
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    color: #666;
    font-size: 12px;
}

.task-meta {
    display: flex;
    gap: 15px;
    color: #888;
    font-size: 12px;
    margin: 10px 0;
}

.task-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Members section styles */
.members-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.members-list {
    margin-top: 20px;
}

.member-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.member-card:last-child {
    border-bottom: none;
}

.member-role {
    color: #666;
    font-size: 12px;
}

/* Alert styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

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

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

/* Empty state styles */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state p {
    margin-bottom: 20px;
}

/* Projects grid styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.project-card .project-meta {
    margin: 15px 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Page header styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h2 {
    margin: 0;
    color: #333;
}

/* Task page styles */
.task-header {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.task-info {
    margin-bottom: 20px;
}

.task-description {
    color: #666;
    margin: 10px 0;
    line-height: 1.5;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #888;
    font-size: 14px;
    margin-top: 15px;
}

.task-meta span {
    display: inline-flex;
    align-items: center;
}

.task-meta a {
    color: #007bff;
    text-decoration: none;
}

.task-meta a:hover {
    text-decoration: underline;
}

.task-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Priority colors */
.priority-urgent {
    color: #dc3545;
}

.priority-high {
    color: #fd7e14;
}

.priority-medium {
    color: #ffc107;
}

.priority-low {
    color: #28a745;
}

/* Status colors */
.status-not_started {
    color: #6c757d;
}

.status-in_progress {
    color: #007bff;
}

.status-completed {
    color: #28a745;
}

.status-blocked {
    color: #dc3545;
}

/* Board View Styles */
.board {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    overflow-x: auto;
    min-height: calc(100vh - 200px);
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.board-filters select {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-width: 200px;
}

.board-column {
    flex: 1;
    min-width: 300px;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.column-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.task-count {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.column-content {
    flex: 1;
    min-height: 100px;
}

/* Task Card Styles */
.task-card {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    cursor: move;
    transition: all 0.2s ease;
}

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

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.task-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    word-break: break-word;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 4px;
    line-height: 0;
}

.btn-icon:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.task-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
    word-break: break-word;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.project-badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.due-date, .assignee {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
}

.due-date.overdue {
    color: var(--danger);
}

/* Priority Styles */
.priority-low {
    border-left: 3px solid var(--priority-low);
}

.priority-medium {
    border-left: 3px solid var(--priority-medium);
}

.priority-high {
    border-left: 3px solid var(--priority-high);
}

.priority-urgent {
    border-left: 3px solid var(--priority-urgent);
}

/* Dragula Styles */
.gu-mirror {
    position: fixed !important;
    margin: 0 !important;
    z-index: 9999 !important;
    opacity: 0.8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gu-hide {
    display: none !important;
}

.gu-unselectable {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

.gu-transit {
    opacity: 0.2;
    transform: none !important;
} 