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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.calculator-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 40px;
}

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

.calculator-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.calculator-section h2 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: #667eea;
}

.time-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.time-inputs input {
    text-align: center;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.result {
    background: #e8f5e8;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

.result h3 {
    color: #155724;
    margin-bottom: 10px;
}

.result-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
}

.info-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.info-section h2 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.info-section h3 {
    color: #667eea;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    text-align: justify;
}

.info-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.info-section li {
    margin-bottom: 8px;
}

.pace-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.pace-table th,
.pace-table td {
    border: 1px solid #dee2e6;
    padding: 12px;
    text-align: center;
}

.pace-table th {
    background: #667eea;
    color: white;
    font-weight: 600;
}

.pace-table tr:nth-child(even) {
    background: #f8f9fa;
}

.ad-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px dashed #dee2e6;
}

.ad-banner {
    min-height: 250px;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
}

.ad-sidebar {
    min-height: 600px;
    background: #e9ecef;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
}

footer {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

nav a:hover {
    background: rgba(255,255,255,0.3) !important;
    transform: translateY(-2px);
}

.toggle-navbar-btn {
    display: none;
    margin-top: 20px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.3);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-navbar-btn:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .container { padding: 10px; }
    h1 { font-size: 2rem; }
    .calculator-grid { grid-template-columns: 1fr; }
    .time-inputs { grid-template-columns: 1fr; }
    .toggle-navbar-btn { display: inline-block; }
    #navbar { display: none; margin-top: 15px; }
    #navbar.show { display: block; }
    nav div { flex-direction: column !important; align-items: center; }
    nav a { width: 200px; text-align: center; }
}
