* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --rainbow-gradient: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    padding: 20px;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

/* Animasyonlu arka plan */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(240, 147, 251, 0.3) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.5) inset;
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    background: var(--primary-gradient);
    color: white;
    padding: 50px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--rainbow-gradient);
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

header h1 {
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.3),
        0 0 20px rgba(255,255,255,0.3);
    position: relative;
    z-index: 1;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.3); }
    to { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 30px rgba(255,255,255,0.5); }
}

header p {
    font-size: 1.2em;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

nav {
    display: flex;
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 3px solid transparent;
    border-image: var(--primary-gradient) 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav a {
    flex: 1;
    padding: 18px;
    text-align: center;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left 0.3s;
    z-index: 0;
}

nav a:hover::before {
    left: 0;
}

nav a:hover {
    color: white;
    transform: translateY(-2px);
}

nav a.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

nav a span {
    position: relative;
    z-index: 1;
}

main {
    padding: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.98) 0%, rgba(248,249,250,0.98) 100%);
}

.card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.9) 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 25px;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.1),
        0 0 0 1px rgba(102, 126, 234, 0.1) inset;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(102, 126, 234, 0.2),
        0 0 0 1px rgba(102, 126, 234, 0.2) inset;
}

.card h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 1.8em;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.input-group input {
    flex: 1;
    padding: 18px 25px;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1.05em;
    transition: all 0.3s;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 5px 20px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

button {
    padding: 18px 35px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 5px 15px rgba(102, 126, 234, 0.4),
        0 0 0 0 rgba(102, 126, 234, 0.5);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before {
    width: 300px;
    height: 300px;
}

button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.5),
        0 0 0 4px rgba(102, 126, 234, 0.2);
}

button:active {
    transform: translateY(-1px) scale(0.98);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

button span {
    position: relative;
    z-index: 1;
}

button.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.remove-btn {
    padding: 12px 18px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    font-size: 1em;
    border-radius: 12px;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.status {
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    font-weight: 600;
    font-size: 1.05em;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.status.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #28a745;
}

.status.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #dc3545;
}

.status.info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 2px solid #17a2b8;
}

.hidden {
    display: none;
}

.progress {
    margin-top: 25px;
}

.progress-text {
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.1em;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-bar {
    height: 35px;
    background: linear-gradient(90deg, #e0e0e0 0%, #f5f5f5 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 2px 10px rgba(0,0,0,0.1) inset,
        0 0 0 2px rgba(102, 126, 234, 0.1);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: shimmer 2s infinite;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.result {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.95) 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.1),
        0 0 0 2px rgba(40, 167, 69, 0.2) inset;
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.result h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.countdown-text {
    font-size: 1.1em;
    margin: 15px 0;
    color: #666;
    font-weight: 600;
}

.countdown-text span {
    color: #667eea;
    font-weight: 700;
    font-size: 1.2em;
    transition: color 0.3s;
    display: inline-block;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.result a {
    display: inline-block;
    margin-top: 20px;
    padding: 18px 45px;
    background: var(--success-gradient);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.4);
    position: relative;
    overflow: hidden;
}

.result a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.result a:hover::before {
    width: 300px;
    height: 300px;
}

.result a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(79, 172, 254, 0.6);
}

.result a.disabled-link {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.result a.disabled-link:hover {
    transform: none;
    box-shadow: none;
}

footer {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    text-align: center;
    color: #666;
    font-size: 0.95em;
    font-weight: 500;
    border-top: 2px solid rgba(102, 126, 234, 0.1);
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2.2em;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
    
    main {
        padding: 25px;
    }
    
    .card {
        padding: 25px;
    }
}
