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

body {
    font-family: 'Comic Sans MS', 'Segoe UI', cursive, sans-serif;
    background: linear-gradient(135deg, #2d3561 0%, #1a1f3a 50%, #0f1419 100%);
    background-attachment: fixed;
    padding: 20px;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 10px rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

h1 {
    color: #00d4ff;
    margin-bottom: 30px;
    text-align: center;
    font-size: 3em;
    font-weight: bold;
    text-shadow: 3px 3px 0px #ff006e, 6px 6px 0px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
}

h2 {
    color: #00d4ff;
    margin: 30px 0 20px 0;
    font-size: 1.8em;
    text-shadow: 2px 2px 0px #ff006e;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '✨';
    margin-left: 10px;
    animation: sparkle 1s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Tabs */
.tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: none;
    justify-content: center;
}

.tab-btn {
    padding: 15px 30px;
    background: #7b2cbf;
    border: 3px solid #00d4ff;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    background: #5a189a;
    border-color: #ff006e;
    box-shadow: 0 8px 20px rgba(255, 0, 110, 0.4);
}

.tab-btn.active {
    background: #ff006e;
    border-color: #00d4ff;
    box-shadow: 0 8px 20px rgba(255, 0, 110, 0.6);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: slideIn 0.5s ease;
}

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

/* Date Selector */
.date-selector {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    justify-content: center;
}

.date-selector input[type="date"] {
    padding: 12px 20px;
    border: 3px solid #7b2cbf;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    background: white;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.date-selector input[type="date"]:hover {
    border-color: #00d4ff;
    box-shadow: 0 6px 15px rgba(0, 212, 255, 0.4);
}

.date-selector input[type="date"]:focus {
    outline: none;
    border-color: #ff006e;
    box-shadow: 0 0 0 5px rgba(255, 0, 110, 0.3);
}

/* Forms */
.checkpoint-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 4px solid #7b2cbf;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #7b2cbf;
    font-weight: bold;
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 3px solid #7b2cbf;
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 5px rgba(0, 212, 255, 0.3);
}

/* Checkpoint List */
.checkpoint-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkpoint-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 20px;
    border: 4px solid #7b2cbf;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-bottom: 5px;
}

.checkpoint-item:hover {
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    border-color: #00d4ff;
}

.checkpoint-item.completed {
    background: #06ffa5;
    border-color: #00d900;
    animation: bounce 0.6s ease;
}

.checkpoint-item.completed .checkpoint-name,
.checkpoint-item.completed .checkpoint-time,
.checkpoint-item.completed .actual-time {
    color: #1a1f3a;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.checkpoint-item.late {
    background: #ff006e;
    border-color: #c9004d;
    color: white;
    animation: shake 0.5s ease;
}

.checkpoint-item.late .checkpoint-name,
.checkpoint-item.late .checkpoint-time {
    color: white;
    -webkit-text-fill-color: white;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.checkpoint-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.checkpoint-time {
    font-weight: bold;
    color: #7b2cbf;
    min-width: 80px;
    font-size: 20px;
}

.original-time {
    font-size: 12px;
    color: #666;
    font-weight: normal;
    margin-left: 8px;
    background: #e0e0e0;
    padding: 2px 8px;
    border-radius: 10px;
}

.checkpoint-name {
    color: #1a1f3a;
    font-size: 18px;
    font-weight: 600;
}

.actual-time {
    color: #00d900;
    font-size: 16px;
    font-weight: bold;
}

.sort-order {
    color: #666;
    font-size: 12px;
    background: #e0e0e0;
    padding: 2px 8px;
    border-radius: 10px;
}

.checkpoint-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hit-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.time-input {
    padding: 10px 16px;
    border: 3px solid #7b2cbf;
    border-radius: 20px;
    font-size: 14px;
    width: 140px;
    font-weight: bold;
    transition: all 0.3s;
    background: white;
}

.time-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 5px rgba(0, 212, 255, 0.3);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: 3px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-primary {
    background: #7b2cbf;
    border-color: #00d4ff;
    color: white;
}

.btn-primary:hover {
    background: #5a189a;
    border-color: #ff006e;
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.4);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-secondary {
    background: #ff006e;
    border-color: #00d4ff;
    color: white;
}

.btn-secondary:hover {
    background: #c9004d;
    border-color: #06ffa5;
    box-shadow: 0 6px 20px rgba(6, 255, 165, 0.4);
}

.btn-danger {
    background: #ff006e;
    border-color: #ff006e;
    color: white;
}

.btn-danger:hover {
    background: #c9004d;
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.6);
}

.btn-small {
    padding: 8px 16px;
    font-size: 18px;
}

/* Empty Message */
.empty-message {
    color: #00d4ff;
    font-style: italic;
    text-align: center;
    padding: 40px;
    font-size: 18px;
    font-weight: bold;
}

.empty-message::before {
    content: '🤷';
    display: block;
    font-size: 48px;
    margin-bottom: 10px;
}

/* Comment Section */
.comment-section {
    margin-top: 15px;
    width: 100%;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 300px;
    }
}

.comment-text {
    padding: 15px 20px;
    background: rgba(6, 255, 165, 0.2);
    border-left: 5px solid #06ffa5;
    border-radius: 15px;
    font-size: 14px;
    color: #1a1f3a;
    white-space: pre-wrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
}

.comment-text::before {
    content: '💭';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 24px;
}

.comment-form {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.comment-textarea {
    flex: 1;
    padding: 12px 16px;
    border: 3px solid #7b2cbf;
    border-radius: 15px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s;
    background: white;
}

.comment-textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 5px rgba(0, 212, 255, 0.3);
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .checkpoint-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .checkpoint-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
