* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

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

/* Header Styles */
header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e7eb;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.header-logo:hover {
    opacity: 0.8;
}

.header-logo img {
    width: 40px;
    height: 40px;
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

/* Main Content */
main {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 200px);
    background-color: #f9fafb;
}

.main-content {
    width: 100%;
    margin: 0 auto;
}

.content-wrapper {
    display: flex;
    justify-content: center;
    margin: 10px;
}

.content-container {
    width: 80%;
    max-width: 1200px;
}

/* Title Section */
.title-section {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 16px;
    padding-right: 0;
    padding-bottom: 16px;
    padding-left: 0;
    text-align: center;
}

.main-title {
    font-size: 48px;
    font-weight: 700;
    color: #111827;
    margin: 8px 0;
}

.subtitle {
    color: #6b7280;
    font-size: 18px;
    margin-bottom: 16px;
}

.conversion-text {
    color: #6b7280;
    font-size: 18px;
    margin-top: 16px;
}

/* Button Styles */
.back-button {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.2s, transform 0.2s;
    margin: 0;
}

.back-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Conversion Card */
.conversion-card {
    max-width: 1200px;
    margin: 0 auto 32px;
}

.card {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
}

.time-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.time-box {
    background: #f8fafc;
    padding: 24px;
    border-radius: 8px;
    min-width: 200px;
    text-align: center;
}

.time-box.est {
    border-left: 4px solid #3b82f6;
}

.time-box.ist {
    border-left: 4px solid #10b981;
}

.time-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.time-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.arrow {
    font-size: 32px;
    color: #6b7280;
    font-weight: bold;
}

/* Calculation Section */
.calculation-card {
    max-width: 1200px;
    margin: 0 auto 32px;
}

.formula-box {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.formula-step {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.highlight {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

/* Table Styles */
.table-container {
    max-width: 1200px;
    margin: 0 auto 32px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
    transition: transform 0.2s, box-shadow 0.2s;
}

.page-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-card h3 {
    margin: 0 0 10px 0;
    color: #2c5aa0;
    font-size: 18px;
}

.page-card p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.page-card a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: bold;
}

.page-card a:hover {
    text-decoration: underline;
}

.next-day {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.same-day {
    background: #d1ecf1;
    border-color: #bee5eb;
}

.stats {
    margin-top: 40px;
    padding: 20px;
    background: #e9ecef;
    border-radius: 8px;
    text-align: center;
}

.stats p {
    color: #666;
    font-size: 16px;
}

/* Footer */
footer {
    background: #111827;
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.footer-section p {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-info {
    color: #d1d5db;
    font-size: 14px;
}

.footer-info strong {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 32px;
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 16px 20px;
    }
    
    .main-title {
        font-size: 36px;
    }
    
    .subtitle, .conversion-text {
        font-size: 16px;
    }
    
    .time-display {
        flex-direction: column;
        gap: 20px;
    }
    
    .arrow {
        transform: rotate(90deg);
    }
    
    .content-container {
        width: 95%;
    }
    
    .footer-content {
        padding: 24px 20px;
    }
}
