/* PhantomGrid Account Styles - Bootstrap Extension */

/* Base overrides */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #fafafa;
}

/* Common container styles */
.pg-container {
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 0.5rem;
    box-shadow: none;
    padding: 2.5rem;
}

/* Logo styles */
.pg-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.pg-logo h1 {
    color: #000;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.pg-logo p {
    color: #666;
    font-size: 0.9rem;
    font-weight: 300;
}

/* Form overrides */
.form-label {
    color: #000;
    font-weight: 400;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1px solid #d0d0d0;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background-color: white;
}

.form-control:focus {
    border-color: #000;
    background-color: white;
    box-shadow: none;
}

/* Button styles */
.btn-pg {
    background: white;
    color: #000;
    border: 1px solid #d0d0d0;
    border-radius: 0.5rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    font-size: 1rem;
    padding: 1rem;
}

.btn-pg:hover {
    background: #f5f5f5;
    border-color: #000;
    color: #000;
}

.btn-pg:active {
    background: white;
    color: #000;
}

.btn-pg-primary {
    background-color: rgb(52, 107, 222);
    color: rgb(255, 255, 255);
    border: 1px solid rgb(52, 107, 222);
}

.btn-pg-primary:hover {
    background-color: rgb(41, 87, 181);
    color: rgb(255, 255, 255);
    border: 1px solid rgb(41, 87, 181);
}

.btn-pg-danger {
    color: #d32f2f;
    border-color: #d32f2f;
}

.btn-pg-danger:hover {
    background: #ffebee;
    border-color: #d32f2f;
    color: #d32f2f;
}

/* Error/Alert styles */
.pg-alert {
    background-color: white;
    border: 1px solid #d0d0d0;
    color: #000;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.pg-alert ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pg-alert li {
    margin-bottom: 0.5rem;
}

.pg-alert li:last-child {
    margin-bottom: 0;
}

.pg-alert-warning {
    border-left: 4px solid #f9a825;
}

.pg-alert-info {
    border-left: 4px solid #3498db;
}

/* Section titles */
.pg-section-title {
    color: #000;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #d0d0d0;
    letter-spacing: 0.5px;
}

/* Info display styles */
.pg-info-label {
    color: #000;
    font-weight: 400;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pg-info-value {
    color: #333;
    font-size: 1rem;
    font-weight: 300;
    word-break: break-word;
}

.pg-info-value.empty {
    color: #999;
    font-style: italic;
}

/* Stats styles */
.pg-stats {
    padding: 1.5rem;
    background: #fafafa;
    border: 1px solid #d0d0d0;
}

.pg-stat-value {
    font-size: 1.75rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 0.5rem;
}

.pg-stat-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Error pages */
.pg-error-code {
    color: #d32f2f;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.pg-error-title {
    color: #000;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.pg-error-message {
    color: #333;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Auth banner */
.pg-auth-banner {
    background: white;
    color: #333;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    border-bottom: 1px solid #d0d0d0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 50px;
}

.pg-auth-banner span {
    font-size: 0.9rem;
}

.pg-auth-banner a {
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.pg-auth-banner a:hover {
    background: #f5f5f5;
    border-color: #000;
    color: #000;
}

/* App iframe */
.pg-app-iframe {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% - 50px);
    border: none;
}

/* Permissions list */
.pg-permissions-list {
    list-style: none;
    margin-top: 1rem;
}

.pg-permissions-list li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: #333;
    display: flex;
    align-items: center;
}

.pg-permissions-list li:before {
    content: "✓";
    color: #4caf50;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Password info section */
.pg-password-info {
    padding: 1rem;
    background: #fafafa;
    border: 1px solid #d0d0d0;
}

.pg-password-info p {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Back link */
.pg-back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pg-back-link:hover {
    opacity: 0.7;
    color: #1d6cff;
}

/* Message/alert box styles for profile messages */
.pg-message-box {
    background: white;
    border: 1px solid #d0d0d0;
    color: #000;
    border-radius: 0.5rem;
    text-align: center;
}

.pg-message-box p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

/* Utility classes */
.pg-divider {
    border: none;
    border-top: 1px solid #d0d0d0;
    margin: 2rem 0;
}

/* Responsive overrides */
@media (max-width: 768px) {
    .pg-container {
        padding: 1.5rem;
    }
    
    .pg-logo h1 {
        font-size: 1.75rem;
    }
    
    .pg-error-code {
        font-size: 2.5rem;
    }
    
    .pg-error-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .pg-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
}