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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    color: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.header-content > div:first-child {
    flex: 1;
}

h1 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
}

.subtitle {
    opacity: 0.9;
    font-size: 14px;
}

main {
    padding: 30px;
}

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

label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 500;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

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

.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e1e8ed;
    border-top-color: #667eea;
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.results {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.results h2 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.result-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e1e8ed;
    transition: border-color 0.3s;
}

.result-item:hover {
    border-color: #667eea;
}

.result-item:last-child {
    margin-bottom: 0;
}

.issue-link {
    display: flex;
    justify-content: space-between;
    align-items: start;
    text-decoration: none;
    color: inherit;
    gap: 10px;
}

.issue-info {
    flex: 1;
}

.issue-identifier {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 4px;
}

.issue-title {
    color: #333;
    margin-bottom: 4px;
}

.issue-team {
    color: #666;
    font-size: 12px;
}

.copy-btn {
    padding: 6px 12px;
    background: #e1e8ed;
    color: #333;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #d1d8dd;
}

.copy-btn.copied {
    background: #48bb78;
    color: white;
}

.error {
    background: #fed7d7;
    border: 1px solid #fc8181;
    color: #c53030;
    padding: 15px;
    border-radius: 8px;
}

.error h3 {
    margin-bottom: 8px;
    font-size: 16px;
}

.error p {
    font-size: 14px;
}

.hidden {
    display: none;
}

footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e1e8ed;
}

.info {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

code {
    background: #e1e8ed;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #333;
}

.single-result {
    text-align: center;
    padding: 20px;
}

.single-result .redirect-message {
    margin-bottom: 10px;
    color: #48bb78;
    font-weight: 500;
}

.auth-status {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.user-email {
    font-size: 13px;
    opacity: 0.95;
    font-weight: 500;
}

.logout-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: none;
    box-shadow: none;
}

.logout-btn:active {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .auth-status {
        width: 100%;
        justify-content: space-between;
    }

    .input-group {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .issue-link {
        flex-direction: column;
    }

    .copy-btn {
        width: 100%;
    }
}