* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f7f4;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f9f7f4 0%, #faf8f5 100%);
    padding: 80px 20px;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background-color: #DC143C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo svg {
    width: 70px;
    height: 70px;
}

.logo-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.hero h1 {
    font-size: 3.5em;
    color: #1a1a2e;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 1.5em;
    color: #5a6b7e;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero .description {
    font-size: 1.1em;
    color: #7a8b9e;
    margin-bottom: 40px;
    line-height: 1.8;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 30px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #FF0000;
    color: white;
}

.btn-primary:hover {
    background-color: #b81030;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.btn-secondary {
    background-color: white;
    color: #1a1a2e;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
    border-color: #1a1a2e;
}

.btn-danger {
    background-color: #b81030;
    color: white;
}

.btn-danger:hover {
    background-color: #951026;
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.9em;
}

.page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px 40px;
}

.page-card {
    background-color: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.page-subtitle {
    color: #7a8b9e;
    margin-top: 6px;
}

.admin-form {
    margin-top: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group textarea,
.form-group select {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
}

.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #DC143C;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 0.95em;
}

.admin-table th {
    color: #1a1a2e;
    font-weight: 700;
}

.empty-state {
    padding: 24px;
    text-align: center;
    color: #7a8b9e;
    background-color: white;
    border-radius: 12px;
    border: 1px dashed #e0e0e0;
}

.form-help-text {
    font-size: 0.85em;
    color: #7a8b9e;
    margin-top: 4px;
    font-style: italic;
}

.status-badge-table {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-badge-table.active {
    background-color: #d4edda;
    color: #155724;
}

.status-badge-table.standby {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge-table.offline {
    background-color: #f8d7da;
    color: #721c24;
}

.table-empty {
    text-align: center;
    color: #7a8b9e;
    padding: 24px;
}

.inline-form {
    display: inline-block;
    margin-left: 8px;
}

.admin-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.admin-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.admin-card {
    background-color: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e8e8e8;
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.admin-card:hover {
    transform: translateY(-3px);
    border-color: #DC143C;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.admin-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background-color: #ffe0e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
}

.admin-card h2 {
    font-size: 1.2em;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.admin-card p {
    color: #7a8b9e;
    font-size: 0.95em;
    line-height: 1.5;
}

.admin-card-disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.admin-badge {
    display: inline-block;
    margin-top: 10px;
    background-color: #f5f5f5;
    color: #5a6b7e;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85em;
    font-weight: 600;
}

/* Features Overview Section */
.features-overview {
    padding: 60px 20px;
    background-color: white;
}

.features-overview .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
    border-color: #FF0000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 2.2em;
    color: #FF0000;
    margin-bottom: 10px;
}

.feature-card p {
    color: #7a8b9e;
    font-size: 1em;
}

/* Powerful Features Section */
.powerful-features {
    padding: 80px 20px;
    background-color: #f9f7f4;
    text-align: center;
}

.powerful-features h2 {
    font-size: 2.5em;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.features-description {
    font-size: 1.1em;
    color: #5a6b7e;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background-color: white;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-item-icon {
    width: 60px;
    height: 60px;
    background-color: #ffe0e6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    margin: 0 auto 20px;
}

.feature-item h3 {
    font-size: 1.3em;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.feature-item p {
    color: #7a8b9e;
    font-size: 0.95em;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #DC143C 0%, #FF5733 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 20px;
    margin: 60px 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section h2 {
    font-size: 2.3em;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-cta {
    background-color: white;
    color: #DC143C;
    padding: 14px 40px;
    font-size: 1.1em;
    font-weight: 700;
}

.btn-cta:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: #f9f7f4;
    padding: 50px 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.3em;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.footer-subtitle {
    font-size: 0.95em;
    color: #5a6b7e;
    margin-bottom: 10px;
}

.footer-description {
    font-size: 0.9em;
    color: #7a8b9e;
}

/* Login & Sign-up Pages */
.login-container {
    background: linear-gradient(135deg, #f9f7f4 0%, #faf8f5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    background-color: white;
    border-radius: 16px;
    padding: 50px 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-icon-bg {
    width: 70px;
    height: 70px;
    background-color: #ffe0e6;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-logo svg {
    width: 40px;
    height: 40px;
}

.login-box h1 {
    font-size: 2em;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-subtitle {
    text-align: center;
    color: #7a8b9e;
    font-size: 0.95em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-message {
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.95em;
    line-height: 1.4;
}

.form-message.error {
    background-color: #ffe9ec;
    color: #a10f2a;
    border: 1px solid #f3b1bf;
}

.form-message.success {
    background-color: #e7f7ee;
    color: #1d6b3a;
    border: 1px solid #b7e7c8;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.95em;
    color: #1a1a2e;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background-color: #f5f5f5;
}

.form-group input:focus {
    outline: none;
    border-color: #DC143C;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.btn-login {
    background-color: #DC143C;
    color: white;
    padding: 14px 30px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: #b81030;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.demo-text {
    text-align: center;
    color: #7a8b9e;
    font-size: 0.9em;
    margin-top: 15px;
}

.login-text {
    text-align: center;
    color: #7a8b9e;
    font-size: 0.9em;
    margin-top: 10px;
}

.link-login {
    color: #DC143C;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-login:hover {
    text-decoration: underline;
}

.back-link {
    text-align: center;
    display: block;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 0.95em;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #DC143C;
}

/* Dashboard Styles */
.dashboard-header {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.header-text h1 {
    font-size: 1.3em;
    color: #1a1a2e;
    font-weight: 700;
    margin: 0;
}

.header-text p {
    font-size: 0.85em;
    color: #7a8b9e;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-label {
    font-size: 0.8em;
    color: #7a8b9e;
}

.user-email {
    font-size: 0.9em;
    color: #1a1a2e;
    font-weight: 600;
}

.btn-logout {
    background-color: white;
    color: #1a1a2e;
    padding: 8px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background-color: #f5f5f5;
    border-color: #1a1a2e;
}

.logout-icon {
    transform: rotate(45deg);
    display: inline-block;
}

.dashboard-main {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px 25px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stat-title {
    font-size: 0.9em;
    color: #1a1a2e;
    font-weight: 600;
}

.stat-icon {
    font-size: 1.2em;
    opacity: 0.5;
}

.stat-number {
    font-size: 2.8em;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 0.85em;
    color: #7a8b9e;
}

.dashboard-tabs {
    display: inline-flex;
    gap: 5px;
    background-color: #f5f5f5;
    padding: 5px;
    border: none;
    border-radius: 8px;
}

.tab-btn {
    padding: 8px 20px;
    background-color: transparent;
    border: none;
    border-bottom: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
    color: #1a1a2e;
}

.tab-btn.active {
    background-color: white;
    color: #1a1a2e;
    font-weight: 600;
    border-bottom: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Evacuation Section Layout */
.evacuation-section {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 30px;
    align-items: start;
}

.evacuation-section > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.evacuation-section h2 {
    font-size: 1.3em;
    color: #1a1a2e;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
}

.evacuation-chart-card {
    background-color: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.evacuation-chart-header h3 {
    font-size: 1em;
    color: #1a1a2e;
    margin: 0 0 12px 0;
}

.evacuation-chart-canvas-wrap {
    position: relative;
    height: 280px;
}

.evacuation-chart-empty {
    color: #7a8b9e;
    margin: 0;
}

.evacuation-cards {
    display: grid;
    gap: 20px;
}

.evacuation-card {
    background-color: white;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.evacuation-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-title-section h3 {
    font-size: 1.1em;
    color: #1a1a2e;
    font-weight: 700;
    margin-bottom: 5px;
}

.card-address {
    font-size: 0.88em;
    color: #7a8b9e;
    margin: 0;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.65em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-badge.safe {
    background-color: #d4f4dd;
    color: #0d6832;
}

.status-badge.warning {
    background-color: #fffacd;
    color: #8b6914;
}

.status-badge.danger {
    background-color: #ffe0e0;
    color: #c70000;
}

.card-body {
    margin-top: 15px;
}

.occupancy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.occupancy-label {
    font-size: 0.88em;
    color: #7a8b9e;
    font-weight: 400;
    margin-bottom: 8px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    width: 100%;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.progress-fill.safe {
    background-color: #28a745 !important;
}

.progress-fill.warning {
    background-color: #ffc107 !important;
}

.progress-fill.danger {
    background-color: #dc143c !important;
}

.occupancy-stats {
    font-size: 0.88em;
    font-weight: 600;
    white-space: nowrap;
    min-width: fit-content;
}

.occupancy-stats.safe-text {
    color: #28a745;
}

.occupancy-stats.warning-text {
    color: #ffc107;
}

.occupancy-stats.danger-text {
    color: #dc143c;
}

.shelter-type {
    font-size: 0.85em;
    color: #7a8b9e;
    margin: 0;
    cursor: pointer;
}

.evacuation-card {
    cursor: pointer;
}

/* Detail Panel Styles */
.detail-panel {
    background-color: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 40px 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.detail-panel-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: #7a8b9e;
    text-align: center;
    height: 350px;
}

.detail-panel-placeholder-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.3;
}

.detail-panel-placeholder-text {
    font-size: 1em;
    color: #7a8b9e;
    font-weight: 500;
}

.detail-content {
    display: none;
    width: 100%;
}

.detail-content.active {
    display: block;
    position: relative;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
    margin-top: 0;
}

.detail-header h2 {
    font-size: 1.3em;
    color: #1a1a2e;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.4em;
    cursor: pointer;
    color: #7a8b9e;
    padding: 5px 8px;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #1a1a2e;
}

.detail-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
}

.detail-badge.safe {
    background-color: #d4f4dd;
    color: #0d6832;
}

.detail-badge.warning {
    background-color: #fffacd;
    color: #8b6914;
}

.detail-badge.danger {
    background-color: #ffe0e0;
    color: #c70000;
}

.detail-address {
    font-size: 0.95em;
    color: #7a8b9e;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-icon {
    font-size: 1.2em;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    font-size: 1em;
    color: #1a1a2e;
    font-weight: 700;
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-label {
    font-size: 0.9em;
    color: #7a8b9e;
    font-weight: 500;
}

.info-value {
    font-size: 0.95em;
    color: #1a1a2e;
    font-weight: 600;
}

.info-value.available {
    color: #28a745;
}

.info-value.danger {
    color: #dc143c;
}

.progress-bar-large {
    width: 100%;
    height: 8px;
    background-color: #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
    position: relative;
}

.progress-bar-large .progress-fill {
    height: 100%;
    border-radius: 10px;
}

.location-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f7f4;
    border-radius: 8px;
}

.location-icon {
    font-size: 1.3em;
    flex-shrink: 0;
}

.location-label {
    font-size: 0.85em;
    color: #7a8b9e;
    margin: 0 0 5px 0;
}

.location-value {
    font-size: 0.95em;
    color: #1a1a2e;
    font-weight: 600;
    margin: 0;
}

.facilities-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background-color: #f9f7f4;
    border-radius: 8px;
    font-size: 0.9em;
    color: #1a1a2e;
}

.facility-icon {
    color: #28a745;
    font-weight: bold;
    font-size: 1.1em;
}

.status-message {
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9em;
    line-height: 1.6;
}

.occupants-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.occupants-table {
    width: 100%;
    border-collapse: collapse;
}

.occupants-table th,
.occupants-table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.88em;
    color: #1a1a2e;
}

.occupants-table th {
    background-color: #f9f7f4;
    font-size: 0.8em;
    text-transform: uppercase;
    color: #5a6b7e;
}

.occupants-empty {
    color: #7a8b9e;
    font-size: 0.9em;
    margin: 0;
}

.safe-message {
    background-color: #d4f4dd;
    color: #0d6832;
    border-left: 4px solid #28a745;
}

.warning-message {
    background-color: #fff4d5;
    color: #8b6914;
    border-left: 4px solid #ffc107;
}

.danger-message {
    background-color: #ffe0e0;
    color: #c70000;
    border-left: 4px solid #dc143c;
}

/* Respondents Section */
.respondents-section {
    margin-top: 30px;
}

.respondents-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.respondent-stat-card {
    background-color: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.respondent-stat-card.active-stat {
    border-left: 4px solid #28a745;
}

.respondent-stat-card.standby-stat {
    border-left: 4px solid #ffc107;
}

.respondent-stat-card.offline-stat {
    border-left: 4px solid #7a8b9e;
}

.respondent-stat-label {
    font-size: 0.9em;
    color: #7a8b9e;
    margin-bottom: 10px;
    font-weight: 500;
}

.respondent-stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #1a1a2e;
}

.active-stat .respondent-stat-number {
    color: #28a745;
}

.standby-stat .respondent-stat-number {
    color: #ffc107;
}

.offline-stat .respondent-stat-number {
    color: #7a8b9e;
}

.respondent-directory {
    background-color: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 30px;
}

.directory-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.directory-header h2 {
    font-size: 1.4em;
    color: #1a1a2e;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.directory-subtitle {
    font-size: 0.9em;
    color: #7a8b9e;
    margin: 0;
}

.directory-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.search-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    font-size: 1em;
    color: #7a8b9e;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.9em;
    color: #1a1a2e;
    background-color: #f9f7f4;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #DC143C;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.status-filter {
    padding: 12px 20px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.9em;
    color: #1a1a2e;
    background-color: white;
    cursor: pointer;
    min-width: 150px;
    transition: all 0.3s ease;
}

.status-filter:focus {
    outline: none;
    border-color: #DC143C;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.respondents-table {
    overflow-x: auto;
}

.respondents-table table {
    width: 100%;
    border-collapse: collapse;
}

.respondents-table thead {
    background-color: #f9f7f4;
    border-bottom: 2px solid #e8e8e8;
}

.respondents-table th {
    padding: 15px 20px;
    text-align: left;
    font-size: 0.85em;
    font-weight: 600;
    color: #5a6b7e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.respondents-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9em;
    color: #1a1a2e;
}

.respondents-table tbody tr {
    transition: background-color 0.2s ease;
}

.respondents-table tbody tr:hover {
    background-color: #f9f7f4;
}

.respondent-name {
    font-weight: 600;
    color: #1a1a2e;
}

.status-badge-small {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge-small.active {
    background-color: #d4f4dd;
    color: #0d6832;
}

.status-badge-small.standby {
    background-color: #fffacd;
    color: #8b6914;
}

.status-badge-small.offline {
    background-color: #e8e8e8;
    color: #5a6b7e;
}

.last-update {
    color: #7a8b9e;
    font-size: 0.85em;
}

/* Settings Section */
.settings-section {
    margin-top: 30px;
}

.settings-header {
    margin-bottom: 30px;
}

.settings-header h2 {
    font-size: 1.8em;
    color: #1a1a2e;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.settings-subtitle {
    color: #7a8b9e;
    font-size: 0.95em;
    margin: 0;
}

.settings-tabs {
    display: flex;
    gap: 10px;
    background-color: #f5f5f5;
    padding: 8px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.settings-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 500;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.settings-tab-btn.active {
    background-color: white;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-icon {
    font-size: 1.1em;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.settings-card {
    background-color: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 35px;
}

.settings-card h3 {
    font-size: 1.2em;
    color: #1a1a2e;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.settings-card-subtitle {
    color: #7a8b9e;
    font-size: 0.9em;
    margin: 0 0 25px 0;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-form label {
    font-size: 0.9em;
    color: #1a1a2e;
    font-weight: 600;
}

.settings-input {
    padding: 12px 18px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.9em;
    color: #1a1a2e;
    background-color: #f9f7f4;
    transition: all 0.3s ease;
}

.settings-input:focus {
    outline: none;
    border-color: #DC143C;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.save-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background-color: #1a1a2e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    align-self: flex-start;
}

.save-profile-btn:hover {
    background-color: #2a2a3e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-icon {
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .evacuation-section {
        grid-template-columns: 1fr;
    }
    
    .detail-panel {
        position: static;
        top: auto;
    }

    .respondents-stats {
        grid-template-columns: 1fr;
    }

    .directory-controls {
        flex-direction: column;
    }

    .status-filter {
        width: 100%;
    }

    .respondents-table {
        font-size: 0.85em;
    }

    .respondents-table th,
    .respondents-table td {
        padding: 12px 10px;
    }

    .settings-tabs {
        flex-wrap: wrap;
    }

    .settings-tab-btn {
        flex: 1 1 45%;
        font-size: 0.85em;
        padding: 10px 15px;
    }

    .settings-card {
        padding: 25px 20px;
    }

    .save-profile-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero .subtitle {
        font-size: 1.2em;
    }

    .powerful-features h2 {
        font-size: 2em;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .logo {
        width: 80px;
        height: 80px;
    }

    .features-grid-large {
        grid-template-columns: 1fr;
    }

    .cta-section {
        margin: 40px 10px;
        padding: 50px 20px;
        border-radius: 15px;
    }

    .cta-section h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 15px;
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero .subtitle {
        font-size: 1em;
    }

    .hero .description {
        font-size: 0.95em;
    }

    .features-overview .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .powerful-features {
        padding: 50px 15px;
    }

    .feature-item {
        padding: 25px 15px;
    }
}
