/* Jira Style CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f5f7;
    color: #172b4d;
    line-height: 1.4;
    overflow-x: hidden;
}

/* Jira Header */
.jira-header {
    background: #0052cc;
    color: white;
    padding: 0 16px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
}

.logo i {
    font-size: 24px;
    color: #ff5630;
}

.main-nav {
    display: flex;
    gap: 8px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: #6b778c;
    font-size: 14px;
}

.search-box input {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 3px;
    padding: 8px 12px 8px 36px;
    color: white;
    font-size: 14px;
    width: 240px;
    transition: all 0.2s ease;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box input:focus {
    background: white;
    color: #172b4d;
    outline: none;
}

.search-box input:focus::placeholder {
    color: #6b778c;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.user-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-menu i {
    font-size: 20px;
}

/* Project Navigation */
.project-nav {
    background: white;
    border-bottom: 1px solid #dfe1e6;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
}

.project-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #172b4d;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.project-selector:hover {
    background: #f4f5f7;
}

.project-tabs {
    display: flex;
    gap: 4px;
}

.project-tabs a {
    color: #6b778c;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.project-tabs a:hover,
.project-tabs a.active {
    background: #deebff;
    color: #0052cc;
}

/* Board Container */
.board-container {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.board-title h2 {
    font-size: 24px;
    font-weight: 600;
    color: #172b4d;
    margin-bottom: 4px;
}

.sprint-info {
    color: #6b778c;
    font-size: 14px;
}

.board-actions {
    display: flex;
    gap: 8px;
}

.btn-primary,
.btn-secondary {
    padding: 8px 16px;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #0052cc;
    color: white;
}

.btn-primary:hover {
    background: #0747a6;
}

.btn-secondary {
    background: #f4f5f7;
    color: #172b4d;
    border: 1px solid #dfe1e6;
}

.btn-secondary:hover {
    background: #ebecf0;
}

/* Kanban Board */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.board-column {
    background: #f4f5f7;
    border-radius: 8px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.column-header {
    padding: 16px;
    border-bottom: 1px solid #dfe1e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.column-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #172b4d;
}

.issue-count {
    background: #deebff;
    color: #0747a6;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.column-content {
    padding: 8px;
    flex: 1;
    overflow-y: auto;
}

/* Issue Cards */
.issue-card {
    background: white;
    border: 1px solid #dfe1e6;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: grab;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.issue-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.issue-card:active {
    cursor: grabbing;
}

.issue-card.completed {
    opacity: 0.7;
}

.issue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.issue-type {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.issue-type.story {
    background: #e3fcef;
    color: #006644;
}

.issue-type.bug {
    background: #ffebe6;
    color: #bf2600;
}

.issue-type.task {
    background: #deebff;
    color: #0747a6;
}

.issue-key {
    color: #6b778c;
    font-size: 12px;
    font-weight: 500;
}

.issue-title {
    font-size: 14px;
    font-weight: 500;
    color: #172b4d;
    margin-bottom: 8px;
    line-height: 1.4;
}

.issue-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.priority {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.priority.high {
    background: #ffebe6;
    color: #bf2600;
}

.priority.medium {
    background: #fffae6;
    color: #974f0c;
}

.priority.low {
    background: #e3fcef;
    color: #006644;
}

.priority.critical {
    background: #ffebe6;
    color: #bf2600;
    font-weight: 700;
}

.story-points {
    background: #f4f5f7;
    color: #6b778c;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.issue-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b778c;
}

.assignee,
.comments {
    display: flex;
    align-items: center;
    gap: 4px;
}

.assignee i,
.comments i {
    font-size: 12px;
}

/* Sprint Stats */
.sprint-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.stat-card {
    background: white;
    border: 1px solid #dfe1e6;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #0052cc;
    margin-bottom: 4px;
}

.stat-label {
    color: #6b778c;
    font-size: 14px;
    font-weight: 500;
}

/* Fullscreen Button */
#fullscreen-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0052cc;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 1000;
}

#fullscreen-toggle-btn:hover {
    background: #0747a6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sprint-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .jira-header {
        padding: 0 12px;
    }
    
    .main-nav {
        display: none;
    }
    
    .search-box input {
        width: 180px;
    }
    
    .project-nav {
        padding: 0 16px;
        flex-direction: column;
        height: auto;
        padding: 12px 16px;
        gap: 12px;
    }
    
    .project-tabs {
        width: 100%;
        justify-content: space-between;
    }
    
    .board-container {
        padding: 16px;
    }
    
    .board-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .kanban-board {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .sprint-stats {
        grid-template-columns: 1fr;
    }
    
    .board-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .search-box {
        display: none;
    }
    
    .board-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}