* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    color: #212529;
    background-color: #f9f9f9;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Common headings and text elements */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.2s;
}

a:hover {
    color: #0052a3;
}

/* Common utility classes */
.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}

/* Offline mode notification styles - Global Banner */
.offline-mode-notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f44336;
    color: white;
    text-align: center;
    padding: 10px;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Login message for stored credentials */
.login-message {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    text-align: center;
    animation: fadeIn 0.5s;
}

/* Help text */
.offline-help {
    font-size: 0.9rem;
    margin-top: 5px;
    color: #666;
    font-style: italic;
}

/* Animations - keep these in global as they're used in multiple places */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Application card styles for offline mode */
.offline-mode .app-card-btn {
    background-color: #777;
}

.offline-mode .app-card[data-requires-network="true"] {
    opacity: 0.7;
    pointer-events: none;
}

.offline-mode .app-card[data-requires-network="true"]::before {
    content: "Requires Network";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 2;
}

html, body {
    height: 100%;
    min-height: 100%;
}

.main-content, .container, .container.jsa-wizard {
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
}

.footer {
    flex-shrink: 0;
}

/* Section titles - global */
.section-title {
    font-size: 28px;
    color: #06c;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    font-weight: 700;
    position: relative;
    text-align: center;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: #06c;
}