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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0a1428 0%, #1a2a3a 50%, #0f1a2e 100%);
    background-attachment: fixed;
    color: #e8e8e8;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Starfield background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 60px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 50px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 10px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #d4af37;
    text-shadow: 0 2px 20px rgba(212, 175, 55, 0.3);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #b0b0b0;
    letter-spacing: 1px;
}

.divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 20px auto;
}

.content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
}

.controls {
    background: rgba(26, 42, 58, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 30px;
    height: fit-content;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.controls h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: #d4af37;
    margin-bottom: 20px;
    text-align: center;
}

label {
    display: block;
    font-size: 0.95rem;
    color: #e8e8e8;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="date"] {
    width: 100%;
    padding: 12px;
    background: rgba(42, 58, 74, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #e8e8e8;
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

input[type="date"]:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    background: rgba(42, 58, 74, 1);
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #0a1428;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

button:active {
    transform: translateY(0);
}

.results {
    background: rgba(26, 42, 58, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.results h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: #d4af37;
    margin-bottom: 20px;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

th {
    padding: 15px;
    text-align: left;
    color: #d4af37;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr {
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

td {
    padding: 15px;
    color: #e8e8e8;
}

.planet-name {
    font-weight: 600;
    color: #d4af37;
    font-size: 1.05rem;
}

.zodiac-sign {
    color: #e8e8e8;
    font-weight: 500;
}

.degrees {
    color: #b0b0b0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.direct {
    color: #4ade80;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.retrograde {
    color: #ff6b6b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    animation: retrograde-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes retrograde-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

footer {
    text-align: center;
    color: #7a8a9a;
    font-size: 0.9rem;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

footer a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #e8e8e8;
}

.info-box {
    background: rgba(212, 175, 55, 0.1);
    border-left: 3px solid #d4af37;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #b0b0b0;
}

.info-box strong {
    color: #d4af37;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .content {
        grid-template-columns: 1fr;
    }

    .controls {
        height: auto;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 10px;
    }
}

.loading {
    text-align: center;
    color: #b0b0b0;
    padding: 20px;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-top: 3px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
