* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f0f2f5;
    color: #333;
}

/* Login */
.login-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
}

.login-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.login-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.password-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.password-input:focus {
    border-color: #667eea;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.login-btn:hover {
    transform: translateY(-1px);
}

.login-error {
    color: #f44336;
    text-align: center;
    margin-bottom: 12px;
    font-size: 14px;
    display: none;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 30px;
    margin-bottom: 0;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 4px;
}

.header p {
    opacity: 0.8;
    font-size: 14px;
}

/* App Tabs */
.app-tabs {
    background: white;
    padding: 0 20px;
    display: flex;
    gap: 0;
    overflow-x: auto;
    border-bottom: 2px solid #e1e1e1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.app-tab {
    padding: 14px 20px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    position: relative;
}

.app-tab:hover {
    color: #333;
    background: #f8f9fa;
}

.app-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

.app-tab .badge {
    display: inline-block;
    background: #f44336;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    min-width: 18px;
    text-align: center;
}

.app-tab .badge.zero {
    background: #ccc;
}

.loading-small {
    padding: 14px 20px;
    color: #999;
    font-size: 14px;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 16px 20px;
    background: #f8f9fa;
}

.stat-card {
    background: white;
    padding: 14px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 2px;
}

.stat-card.stat-bug .stat-number { color: #c62828; }
.stat-card.stat-feature .stat-number { color: #7b1fa2; }
.stat-card.stat-general .stat-number { color: #1565c0; }
.stat-card.stat-positive .stat-number { color: #2e7d32; }

.stat-label {
    color: #888;
    font-size: 12px;
    font-weight: 500;
}

/* Kanban Board */
.kanban {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px 20px;
    min-height: 400px;
}

.kanban-column {
    background: #f0f2f5;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.column-header {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.column-bug { background: #c62828; }
.column-feature { background: #7b1fa2; }
.column-general { background: #1565c0; }
.column-positive { background: #2e7d32; }

.column-body {
    padding: 8px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Post Cards */
.post-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
    cursor: default;
}

.post-card:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.post-card.unread {
    border-left: 4px solid #667eea;
}

.post-card .card-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
}

.post-card .card-user {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.post-card .card-body {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 8px;
    max-height: 80px;
    overflow: hidden;
    position: relative;
}

.post-card .card-body.expanded {
    max-height: none;
}

.post-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #aaa;
}

.post-card .card-actions {
    display: flex;
    gap: 6px;
}

.card-actions button {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}

.card-actions .btn-read {
    color: #667eea;
    border-color: #667eea;
}

.card-actions .btn-read:hover {
    background: #667eea;
    color: white;
}

.card-actions .btn-delete {
    color: #f44336;
    border-color: #f44336;
}

.card-actions .btn-delete:hover {
    background: #f44336;
    color: white;
}

.card-actions .btn-attachment {
    color: #4caf50;
    border-color: #4caf50;
    text-decoration: none;
    display: inline-block;
}

.card-actions .btn-attachment:hover {
    background: #4caf50;
    color: white;
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px;
    color: #666;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px;
    color: #999;
}

.empty-icon {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 1200px) {
    .kanban {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats {
        grid-template-columns: repeat(3, 1fr);
    }
    .kanban {
        grid-template-columns: 1fr;
    }
}
