/* Creative and Attractive Styles for Days Counter */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0b1f79 0%, #12041f 100%);
    background: linear-gradient();
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.container {
    max-width: 800px;
    width: 100%;
    padding: 20px;
}

h1 {
    text-align: center;
    color: white;
    font-size: 3em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeIn 1s ease-in;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    animation: slideUp 0.8s ease-out;
}

h2 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.5em;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2d3748;
}

input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

input[type="date"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}



.result, .countdown {
    margin-top: 20px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.result h3, .countdown h3 {
    margin-top: 0;
    color: #2d3748;
}

.result p {
    margin: 10px 0;
    font-size: 18px;
}

.countdown-timer {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.time-unit {
    text-align: center;
    background: #667eea;
    color: white;
    padding: 15px;
    border-radius: 8px;
    min-width: 80px;
}

.time-unit .number {
    display: block;
    font-size: 2em;
    font-weight: bold;
}

.time-unit .label {
    display: block;
    font-size: 0.8em;
    margin-top: 5px;
}

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

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

/* Dark Mode Styles */
.dark-mode {
    background: linear-gradient(135deg, #05152f 0%, #1a202c 100%);
    color: #e2e8f0;
}

.dark-mode .card {
    background: #eee;
    color: #000;
}

.dark-mode .result, .dark-mode .countdown {
    background: #eee;
    border-left-color: #667eea;
}

.dark-mode .result h3, .dark-mode .countdown h3 {
    color: #e2e8f0;
}

.dark-mode .time-unit {
    background: #4a5568;
}

.dark-mode input[type="date"] {
    background: #2d3748;
    color: #e2e8f0;
    border-color: #4a5568;
}

.dark-mode input[type="date"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Enhanced Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        max-width: 100%;
    }

    h1 {
        font-size: 2.5em;
        margin-bottom: 20px;
    }

    .tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .tab-button {
        flex: 1 1 auto;
        min-width: 120px;
        padding: 10px 15px;
        font-size: 14px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .tab-button.active {
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    .tab-button:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
    }

    .card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .countdown-timer {
        flex-direction: column;
        gap: 10px;
    }

    .time-unit {
        margin-bottom: 0;
        padding: 10px;
        min-width: auto;
    }

    .btn {
        padding: 14px 20px;
        font-size: 16px;
        margin-top: 10px;
    }

    .result p, .countdown p {
        font-size: 16px;
        margin: 8px 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }

    .tab-button {
        min-width: 100px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .card {
        padding: 15px;
    }

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

    input[type="date"] {
        padding: 10px;
        font-size: 14px;
    }

    .btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .time-unit .number {
        font-size: 1.5em;
    }

    .time-unit .label {
        font-size: 0.7em;
    }
}

/* Improved Button Design */
.btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(45deg, #5a67d8, #6b46c1);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Tab Button Styles */
.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.tab-button {
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.tab-button.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Dark Mode Toggle Button */
#dark-mode-toggle {
    position: absolute;
    top: 0px;
    right: 10px;
    background: rgba(20, 3, 45, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 18px;
}

#dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.dark-mode #dark-mode-toggle {
    background: rgba(45, 55, 72, 0.8);
    border-color: #4a5568;
}

/* Improved User-Friendliness */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2c10a7 0%, #1f0b47 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    width: 100%;
    padding: 20px;
    position: relative;
}

header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h1 {
    text-align: center;
    color: white;
    font-size: 3.5em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeIn 1s ease-in;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    animation: slideUp 0.8s ease-out;
    transition: transform 0.3s ease;
}

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

h2 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-align: center;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 16px;
}

input[type="date"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: white;
}

input[type="date"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.result, .countdown {
    margin-top: 25px;
    padding: 25px;
    background: #f7fafc;
    border-radius: 10px;
    border-left: 5px solid #667eea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.result h3, .countdown h3 {
    margin-top: 0;
    color: #2d3748;
    font-size: 1.4em;
    text-align: center;
}

.result p {
    margin: 12px 0;
    font-size: 18px;
    color: #4a5568;
}

.countdown-timer {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    gap: 15px;
}

.time-unit {
    text-align: center;
    background: #667eea;
    color: white;
    padding: 20px;
    border-radius: 10px;
    min-width: 100px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.time-unit:hover {
    transform: scale(1.05);
}

.time-unit .number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

.time-unit .label {
    display: block;
    font-size: 0.9em;
    margin-top: 5px;
    opacity: 0.9;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: white;
    font-size: 14px;
}

.social-links {
    margin-top: 15px;
}

.social-link {
    color: white;
    margin: 0 10px;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #667eea;
}

a{
    color: yellow;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Particle Effects */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

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

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