/* SSO Test App Styles */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

h2 {
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
}

h3 {
    color: #5a6c7d;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Buttons */
button {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.sso-button {
    background-color: #007bff;
    color: white;
    font-size: 18px;
    padding: 15px 30px;
    margin: 20px 0;
}

.sso-button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.logout-button {
    background-color: #dc3545;
    color: white;
    float: right;
}

.logout-button:hover {
    background-color: #c82333;
}

.action-button {
    background-color: #28a745;
    color: white;
    margin: 5px 10px 5px 0;
}

.action-button:hover {
    background-color: #218838;
}

.action-button.secondary {
    background-color: #6c757d;
}

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

/* Error Messages */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

/* Code and Debug Output */
pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #007bff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.debug-output {
    max-height: 400px;
    overflow-y: auto;
}

.console-output {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* Dashboard Specific */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.dashboard-content {
    display: grid;
    gap: 30px;
}

.welcome-section,
.actions-section,
.integration-info {
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.user-info {
    background-color: white;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.status-authenticated {
    color: #28a745;
    font-weight: bold;
}

/* Debug Page Specific */
.debug-header {
    margin-bottom: 30px;
}

.debug-nav {
    margin-top: 15px;
}

.debug-nav a {
    color: #007bff;
    text-decoration: none;
    margin-right: 20px;
    font-weight: 500;
}

.debug-nav a:hover {
    text-decoration: underline;
}

.debug-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.status-indicators {
    display: grid;
    gap: 10px;
    margin-top: 15px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: white;
    border-radius: 4px;
}

.status-label {
    font-weight: 500;
}

.status-value {
    font-family: monospace;
    padding: 2px 8px;
    border-radius: 3px;
}

.status-value.success {
    background-color: #d4edda;
    color: #155724;
}

.status-value.error {
    background-color: #f8d7da;
    color: #721c24;
}

.status-value.testing {
    background-color: #fff3cd;
    color: #856404;
}

.debug-actions {
    margin-top: 15px;
}

/* Info Section */
.info-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #e7f3ff;
    border-left: 4px solid #007bff;
    border-radius: 0 4px 4px 0;
}

.info-section ul {
    margin: 10px 0;
}

.info-section li {
    margin: 5px 0;
}

/* Loading Animation */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Links */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Lists */
ul {
    padding-left: 20px;
}

li {
    margin: 8px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .logout-button {
        float: none;
    }
    
    .sso-button {
        width: 100%;
        text-align: center;
    }
    
    .debug-nav a {
        display: block;
        margin: 5px 0;
    }
}
