:root {
    --primary: #20662e;
    --primary-dark: #4d3770;
    --primary-light: #8a6cb3;
    --retro: #d32f2f;
    --direct: #388e3c;
    --text: #2d3748;
    --text-light: #4a5568;
    --bg: #f8f5ff;
    --card-bg: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.main-container {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    /*padding: 20px;*/
    background-image: url('assets/img/stars.webp');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
}

.main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 240, 255, 0.9);
    z-index: -1;
}

.container {
   
    /*margin: 40px auto;*/
    padding: 0 20px;
    width:100%;
}

.header-title {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.header-title::after {
    content: '☿';
    position: absolute;
    font-size: 200px;
    opacity: 0.1;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
}

.subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    color: #ffffff;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
}

h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-light);
}

p {
    margin-bottom: 20px;
    
}

.button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 25px 0;
}

button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
}

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

button i {
    margin-right: 8px;
}

.result {
    font-size: 1.5rem;
    margin: 25px 0;
    font-weight: 600;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.retro {
    color: var(--retro);
    font-weight: 700;
}

.direct {
    color: var(--direct);
    font-weight: 700;
}

.info-box {
    background: rgba(106, 76, 147, 0.08);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid var(--primary);
}

.info-box strong {
    color: var(--primary);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: translateY(0);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    padding: 5px;
}

.date-picker {
    margin: 25px 0;
}

input[type="date"] {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

input[type="date"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(106, 76, 147, 0.2);
}

.retrograde-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 8px;
    /*overflow: hidden;*/
    box-shadow: var(--shadow);
}

.retrograde-table th {
    background: var(--primary);
    color: white;
    padding: 15px;
    text-align: left;
}

.retrograde-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.retrograde-table tr:last-child td {
    border-bottom: none;
}

.retrograde-table tr:nth-child(even) {
    background: rgba(106, 76, 147, 0.05);
}

.retrograde-table .retro-period {
    color: var(--retro);
    font-weight: 600;
}

.effects-list {
    list-style-type: none;
    margin: 20px 0;
}

.effects-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.effects-list li::before {
    content: '☿';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.tips-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.tip-card {
    flex: 1 1 300px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.tip-card h3 i {
    margin-right: 10px;
    font-size: 1.2em;
}

.glossary {
    margin: 40px 0;
}

.glossary-item {
    margin-bottom: 20px;
}

.glossary-item h3 {
    color: var(--primary);
    margin-bottom: 10px;
}



@media (max-width: 768px) {
    h1 {
        font-size: 1.3rem;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    button {
        width: 100%;
        max-width: 300px;
    }
    
    .card {
        padding: 20px;
    }
    .result {
        font-size: 0.8rem;
    margin: 25px 0;
    font-weight: 600;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.retrograde-table th {
    background: var(--primary);
    color: white;
    padding: 0px;
    text-align: center;
}
}
/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}