* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.input-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 3px solid #dc3545;
}

.input-section label {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.input-section input {
    width: 250px;
    padding: 12px 20px;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-right: 15px;
    transition: border-color 0.3s ease;
}

.input-section input[type="date"] {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.input-section input:focus {
    outline: none;
    border-color: #dc3545;
}

.input-section button {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.input-section button:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.results-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 3px solid #dc3545;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-summary {
    text-align: center;
    margin-bottom: 30px;
}

.result-summary h2 {
    font-size: 1.8rem;
    color: #dc3545;
    margin-bottom: 10px;
}

.chancellors-list h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-align: center;
}

.chancellor-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    border-left: 5px solid #dc3545;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chancellor-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.chancellor-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.chancellor-party {
    color: #dc3545;
    font-weight: 600;
    margin-bottom: 8px;
}

.chancellor-period {
    color: #666;
    font-size: 0.95rem;
}

.chancellor-years {
    color: #28a745;
    font-weight: 600;
    font-size: 0.95rem;
}

.chancellor-days {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
}

.info-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #dc3545;
}

.info-section h3 {
    color: #dc3545;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-section h4 {
    color: #dc3545;
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
}

.info-section p {
    color: #555;
    font-size: 1rem;
}

footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
}

footer a:hover {
    color: white;
    border-bottom-color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .input-section {
        padding: 20px;
    }

    .input-section input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .input-section button {
        width: 100%;
    }

    .results-section {
        padding: 20px;
    }

    .result-summary h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    .chancellor-card {
        padding: 15px;
    }

    .chancellor-name {
        font-size: 1.1rem;
    }
}