/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

nav {
    background: linear-gradient(90deg, #d32f2f, #f44336);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 0 0 15px 15px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    margin: 0 8px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover {
    background-color: #ef5350;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

nav a.active {
    background-color: #ffcdd2;
    color: #d32f2f;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.5);
}

.container {
    max-width: 950px;
    margin: 40px auto;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

h1 {
    color: #d32f2f;
    margin-top: 30px;
    margin-bottom: 20px;
    border-bottom: 4px solid #f44336;
    padding-bottom: 15px;
    font-size: 2.5em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

h1:first-child {
    margin-top: 0;
}

h3 {
    color: #f44336;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 600;
}

p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

ul li {
    margin-bottom: 10px;
    padding-left: 10px;
}

.code {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: #ffebee;
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    overflow-x: auto;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}

.code code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.5;
}

.output {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    padding: 20px;
    border-left: 6px solid #f44336;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

table th {
    background: linear-gradient(90deg, #f44336, #ef5350);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 15px;
    border-bottom: 1px solid #ffcdd2;
    background-color: rgba(255, 255, 255, 0.8);
}

table tr:hover {
    background: linear-gradient(90deg, #ffebee, #ffcdd2);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

table tr:last-child td {
    border-bottom: none;
}
