/* Main styles */
:root {
    --uwa-blue: #003087;
    --uwa-gold: #DAAA00;
    --primary-color: #003087;
    --secondary-color: #424242;
    --background-color: #f5f7f5;
    --text-color: #333;
    --border-radius: 8px;
    --side-nav-width: 140px;
}

html {
    /* Force 100% zoom level as baseline */
    zoom: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.uwa-banner {
    height: 8px;
    background-color: var(--uwa-gold);
    width: 100%;
}

.nav-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.nav-top-tier {
    padding: 1.25rem 2rem;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.nav-bottom-tier {
    padding: 0.75rem 2rem;
    background: var(--uwa-blue);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.site-title {
    font-size: 1.5rem;
    color: var(--uwa-blue);
    margin: 0;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--uwa-gold);
}

.nav-separator {
    height: 28px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #e0e0e0, transparent);
}

.nav-separator-vertical {
    height: 20px;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .nav-top-tier {
        padding: 1rem;
    }
    
    .nav-bottom-tier {
        padding: 0.5rem 1rem;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
    
    .nav-logo {
        height: 40px;
    }
}

/* Stepper styles */
.stepper {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.step {
    width: 100%;
    margin: 0 auto;
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.step.active {
    border-left: 4px solid var(--primary-color);
}

/* Form elements */
.form-group {
    margin-bottom: 1.5rem;
}

input[type="file"],
input[type="number"],
input[type="text"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn:hover {
    opacity: 0.9;
}

/* Graph containers */
.results-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(600px, 2fr);
    gap: 2rem;
    align-items: start;
    width: 100%;
    margin: 2rem auto;
    padding: 0 2rem;
}

.graph-section {
    min-width: 0;
    width: 100%;
    padding: 1rem;
}

.graph-wrapper {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    width: 100%;
    height: 600px;
    overflow: visible;  /* Allow content to overflow */
}

.graph {
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;  /* Allow plotly content to overflow */
}

/* Card body padding */
.card-body {
    padding: 1.5rem;
    overflow: visible;  /* Allow content to overflow */
}

/* Alerts and messages */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.alert-info {
    background-color: #E3F2FD;
    color: var(--primary-color);
}

.alert-error {
    background-color: #FFEBEE;
    color: #C62828;
}

/* Debug section styles */
.debug-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-info:hover {
    background-color: #138496;
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.ml-2 {
    margin-left: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.step-blocks {
    display: flex;
    justify-content: space-between;
    margin: 2rem auto;
    max-width: 800px;
    padding: 0 1rem;
}

.block {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: #f5f5f5;
    margin: 0 0.5rem;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.block:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 2px;
    background: #ddd;
}

.block.active {
    background: var(--primary-color);
    color: white;
}

.block.completed {
    background: var(--success-color);
    color: white;
}

.block-number {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.block-text {
    display: block;
    font-size: 0.9rem;
}

/* Step Blocks Styles */
.step-blocks-container {
    background: white;
    padding: 2rem;
    margin: 1.5rem auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.step-blocks {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.block {
    flex: 1;
    position: relative;
    padding: 0 1rem;
}

.block-content {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.block-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.block-icon i {
    font-size: 1.2rem;
    color: #666;
}

.block-label {
    text-align: center;
}

.block-number {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.2rem;
}

.block-text {
    font-size: 0.9rem;
    color: #666;
}

.arrow {
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 1.2rem;
    z-index: 1;
}

/* Active and Completed States */
.block.active .block-content {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.15);
}

.block.active .block-icon {
    background: white;
}

.block.active .block-icon i,
.block.active .block-number,
.block.active .block-text {
    color: white;
}

.block.completed .block-content {
    background: #e8f5e9;
}

.block.completed .block-icon i {
    color: #4CAF50;
}

.block.completed .arrow {
    color: #4CAF50;
}

/* Hover Effects */
.block:hover .block-content {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .results-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .graph-wrapper {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .graph-wrapper {
        height: 400px;
        padding: 0.5rem;
    }
    
    .graph-section {
        padding: 0.5rem;
    }
}

.contact-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: var(--border-radius);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.contact-info {
    text-align: center;
    padding: 0.5rem;
}

.contact-section h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-section p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #666;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.contact-separator {
    color: #ccc;
    font-size: 1.5rem;
    font-weight: 200;
    height: 80px;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.contact-separator::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #ccc;
}

@media (max-width: 768px) {
    .contact-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-separator {
        display: none;
    }
}

.technical-support {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
    width: 100%;
}

.footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    background: white;
    color: var(--secondary-color);
    border-top: 1px solid #eee;
    width: 100%;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-logo {
    max-width: 150px;
    height: auto;
}

.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    margin: 1rem 0 2rem 0;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.hero-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.title-section {
    flex-grow: 1;
}

.hero-section h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}

.subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0.5rem 0 0 0;
}

.uwa-logo {
    width: 60px;
    height: auto;
} 

.graphs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    width: 100%;
    padding: 0 1rem;
}

.main-content {
    min-height: calc(100vh - 60px - 200px - 80px);
    width: 100%;
    padding-bottom: 2rem;
}

.container-fluid {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 400px;
    width: 90%;
}

.modal h2 {
    margin-top: 0;
    color: var(--primary-color);
}

.modal .form-field {
    margin-bottom: 1rem;
}

.modal input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.registration-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px - 200px);
    padding: 2rem;
}

.registration-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
}

.registration-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.registration-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-field input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.registrations-table {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: auto;
}

.registrations-table table {
    width: 100%;
    border-collapse: collapse;
}

.registrations-table th,
.registrations-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.registrations-table th {
    background: #f5f5f5;
    font-weight: 500;
}

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

.analytics-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.analytics-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.analytics-table {
    max-height: 300px;
    overflow-y: auto;
}

/* Use rem units for responsive scaling */
.container {
    width: 100%;
    max-width: 75rem; /* instead of pixels */
    margin: 0 auto;
    padding: 1rem;
}

/* Title styling */
.capacity-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Table styling */
.calculated-values {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    border-collapse: collapse;
}

.calculated-values th,
.calculated-values td {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid #ddd;
}

.calculated-values th {
    background-color: var(--primary-color);
    color: white;
}

.calculated-values tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Table styling */
.capacity-table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
}

.capacity-table th,
.capacity-table td {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.capacity-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #1f2937;
}

.capacity-table tr:nth-child(even) {
    background-color: #f9fafb;
}

.capacity-table tr:hover {
    background-color: #f3f4f6;
}

/* Table section */
.table-section {
    min-width: 0;
    width: 100%;
    overflow-x: auto;
}

/* Side Stepper Layout */
.page-container {
    display: flex;
    min-height: calc(100vh - 60px);
}

.side-stepper {
    width: var(--side-nav-width);
    background: white;
    padding: 1rem 0.75rem;
    border-right: 1px solid #e0e0e0;
    position: fixed;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.main-content-with-stepper {
    margin-left: var(--side-nav-width);
    flex: 1;
    padding: 0;
    min-height: calc(100vh - 60px);
}

.step h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Vertical Stepper */
.vertical-stepper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vertical-step {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.vertical-step::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 100%;
    height: 1rem;
    width: 2px;
    background: #e0e0e0;
}

.vertical-step:last-child::before {
    display: none;
}

.vertical-step.active {
    background: var(--primary-color);
    color: white;
    transform: translateX(0.5rem);
}

.vertical-step.active .vertical-step-icon {
    background: white;
    color: var(--primary-color);
}

.vertical-step.completed {
    background: #e8f5e9;
}

.vertical-step.completed .vertical-step-icon {
    background: white;
    color: #4CAF50;
}

.vertical-step-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.vertical-step-icon i {
    color: #666;
}

.vertical-step.active .vertical-step-icon i {
    color: var(--primary-color);
}

.vertical-step.completed .vertical-step-icon i {
    color: #4CAF50;
}

.vertical-step-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vertical-step-number {
    font-weight: 600;
    font-size: 0.8rem;
}

.vertical-step-text {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
    }
    
    .side-stepper {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 1rem;
    }
    
    .main-content-with-stepper {
        margin-left: 0;
        padding: 1rem;
    }
    
    .vertical-step {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .vertical-step-icon {
        margin-bottom: 0;
    }
}