/* GitHub Collaborator Tool - Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e1e5e9;
}

header h1 {
    color: #24292e;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

header p {
    color: #586069;
    font-size: 1.1rem;
}

.form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #24292e;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5da;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #0366d6;
    box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.1);
}

.form-input.error {
    border-color: #d73a49;
    box-shadow: 0 0 0 3px rgba(215, 58, 73, 0.1);
}

.error-message {
    color: #d73a49;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.github-link {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    color: #0366d6;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

.github-link:hover {
    color: #0256cc;
}

.github-link svg {
    width: 16px;
    height: 16px;
}

.invitation-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #856404;
}

.permission-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.permission-option {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    border: 1px solid #d1d5da;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    gap: 0.5rem;
}

.permission-option:hover {
    background-color: #f6f8fa;
}

.permission-option input[type="radio"] {
    margin: 0;
    margin-top: 0.125rem;
}

.permission-label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.permission-description {
    font-size: 0.875rem;
    color: #666;
    font-weight: normal;
}

.checkbox-group {
    margin: 1.5rem 0;
}

.help-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
    margin-left: 1.5rem;
    line-height: 1.4;
}

.connection-options {
    margin-top: 1rem;
    margin-left: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid #e9ecef;
}

.sub-option {
    margin-bottom: 1rem;
}

.sub-option:last-child {
    margin-bottom: 0;
}

.sub-help-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
    margin-left: 1.5rem;
    line-height: 1.3;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: #0366d6;
    color: white;
}

.btn-primary:hover {
    background-color: #0256cc;
}

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

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn.success {
    background-color: #28a745 !important;
}

.output {
    margin-top: 2rem;
}

.output-section {
    margin-bottom: 2rem;
    border: 1px solid #d1d5da;
    border-radius: 6px;
    overflow: hidden;
}

.output-header {
    background-color: #f6f8fa;
    padding: 1rem;
    border-bottom: 1px solid #d1d5da;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.output-header h3 {
    margin: 0;
    color: #24292e;
    font-size: 1.1rem;
}

.output-content {
    padding: 1rem;
    background-color: #f8f9fa;
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
    font-size: 0.875rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
}

.batch-toggle-section {
    margin: 1rem 0;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .output-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .output-header h3 {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
}