/* Component-specific styles */

/* Auth Container */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

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

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 968px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Authorization List */
.auth-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-item {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-secondary);
}

.auth-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.auth-item-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.auth-item-details {
    margin-bottom: 1rem;
}

.auth-item-date,
.auth-item-scopes {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.revoke-form {
    display: inline;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state-help {
    margin-bottom: 1.5rem;
}

/* Action List */
.action-list {
    list-style: none;
}

.action-list li {
    border-bottom: 1px solid var(--border-color);
}

.action-list li:last-child {
    border-bottom: none;
}

.action-link {
    display: block;
    padding: 1rem 0;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.action-link:hover {
    color: var(--primary-color);
}

/* Settings */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
}

.settings-container h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.settings-section {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.settings-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    margin-bottom: 0;
}

.info-label {
    display: block;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1rem;
    color: var(--text-primary);
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

/* GBC Flow */
.gbc-container {
    max-width: 800px;
    margin: 0 auto;
}

.gbc-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gbc-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.utility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.utility-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.utility-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.utility-card-body {
    flex: 1;
    margin-bottom: 1.5rem;
}

.utility-card-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.utility-card-body p {
    color: var(--text-secondary);
}

.utility-card-footer {
    text-align: right;
}

/* Scopes Form */
.scopes-form {
    margin-bottom: 3rem;
}

.scopes-section {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.scopes-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.scopes-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s;
}

.checkbox-label:hover {
    background-color: var(--bg-secondary);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    margin-right: 0.75rem;
    cursor: pointer;
}

.checkbox-content {
    display: flex;
    flex-direction: column;
}

.checkbox-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Scope String Display */
.scope-string-display {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-tertiary);
    border-radius: var(--border-radius);
}

.scope-string-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.scope-string {
    display: block;
    font-size: 0.75rem;
    word-break: break-all;
    padding: 0.75rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Help Section */
.help-section {
    background-color: var(--bg-tertiary);
    border-left: 4px solid var(--info-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.help-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.help-section p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.help-section p:last-child {
    margin-bottom: 0;
}

/* Error Container */
.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.error-card {
    max-width: 500px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--danger-color);
    margin-bottom: 1rem;
}

.error-message {
    padding: 1rem;
    background-color: var(--danger-light);
    border-radius: var(--border-radius);
    color: #7f1d1d;
    margin-bottom: 1.5rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
