* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
    padding-top: 80px;
}

.navbar-brand img {
    height: 30px;
    width: auto;
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.container.max-w-500 {
    max-width: 500px;
}

.container.max-w-600 {
    max-width: 600px;
}

.container.max-w-1000 {
    max-width: 1000px;
}

.container.max-w-1200 {
    max-width: 1200px;
}

.container.max-w-1400 {
    max-width: 1400px;
}

.container.centered {
    text-align: center;
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.logo.large {
    width: 100px;
    height: 100px;
    font-size: 50px;
}

h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 16px;
}

.header {
    border-bottom: 2px solid #667eea;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.header h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 5px;
}

.header .subtitle {
    color: #666;
    font-size: 16px;
}

.status {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 6px;
    margin: 20px 0;
}

.status.logged-out {
    background: #fff3cd;
    color: #856404;
}

.status-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.success-icon {
    color: #28a745;
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
}

.status-message {
    text-align: center;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.status-detail {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.info-section {
    margin: 30px 0;
}

.info-title {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 10px 0;
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
}

.info-list li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
}

.info-box {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    text-align: left;
}

.info-box strong {
    display: block;
    margin-bottom: 5px;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.warning-box strong {
    color: #856404;
}

.btn {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.action-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: #764ba2;
}

.links {
    margin: 30px 0;
}

.link-item {
    display: block;
    padding: 15px;
    margin: 10px 0;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.link-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.link-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.link-desc {
    font-size: 12px;
    color: #666;
}

.code-block {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    overflow-x: auto;
    margin: 10px 0;
}

.installation-id {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-bottom: 30px;
    color: white;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.profile-info h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
}

.profile-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.claims-section {
    margin-top: 30px;
}

.claims-section h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.claims-table {
    width: 100%;
    overflow-x: auto;
}

.table thead th {
    background: #667eea;
    color: white;
    font-weight: 600;
    border: none;
    padding: 12px;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table td {
    padding: 12px;
    vertical-align: middle;
}

.claim-type {
    font-family: monospace;
    font-size: 12px;
    color: #666;
    word-break: break-all;
}

.claim-value {
    font-weight: 500;
    color: #333;
}

.claim-token {
    font-family: monospace;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    color: #666;
}

.owner-section {
    margin-bottom: 30px;
}

.owner-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    font-size: 20px;
    font-weight: 600;
}

.project-list {
    border: 2px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.project-card {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.project-card:hover {
    background: #f8f9ff;
    border-left: 4px solid #667eea;
    padding-left: 16px;
}

.project-info {
    flex: 1;
}

.project-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.project-details {
    font-size: 14px;
    color: #666;
}

.project-count {
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.all-projects-link {
    background: #f8f9fa;
    color: #667eea;
    font-weight: 600;
}

.all-projects-link:hover {
    background: #e9ecef;
    border-left: 4px solid #28a745;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
}

.metrics-table {
    width: 100%;
    overflow-x: auto;
}

.badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-open {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-closed {
    background: #d4edda;
    color: #155724;
}

.badge-todo {
    background: #e2e3e5;
    color: #383d41;
}

.badge-progress {
    background: #fff3cd;
    color: #856404;
}

.badge-done {
    background: #d4edda;
    color: #155724;
}

.metric-value {
    font-weight: 600;
    color: #667eea;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.summary-card h3 {
    font-size: 36px;
    margin: 0;
    font-weight: 700;
}

.summary-card p {
    margin: 5px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.issue-title {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    color: #999;
    font-size: 12px;
    text-align: center;
}

.footer a {
    color: #667eea;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.card.text-decoration-none {
    color: inherit;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card.text-decoration-none:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        padding-top: 80px;
    }

    .container {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    .header h1 {
        font-size: 24px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .summary-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
    }

    .navbar-brand span {
        font-size: 14px;
    }

    .navbar-brand img {
        height: 24px;
    }
}
