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

body {
    background: linear-gradient( 135deg, #0f172a, #1e293b );
    min-height: 100vh;
    font-family: Inter, Arial, sans-serif;
    color: white;
    padding: 40px;
}

.container {
    max-width: 1200px;
    margin: auto;
}

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

    .header h1 {
        font-size: 3rem;
        margin-bottom: 10px;
    }

.today {
    margin-top: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #22c55e;
}

.reset-btn {
    margin-top: 20px;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    color: white;
    background: linear-gradient( 135deg, #ef4444, #dc2626 );
    transition: 0.2s;
}

    .reset-btn:hover {
        transform: scale(1.03);
    }

.tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.tab {
    width: auto;
    padding: 12px 25px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: rgba(255,255,255,0.08);
    transition: 0.2s;
}

    .tab.active {
        background: linear-gradient( 135deg, #3b82f6, #8b5cf6 );
    }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 24px;
    backdrop-filter: blur(12px);
    transition: 0.25s;
}

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

.top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 12px #22c55e;
}

.name {
    font-size: 1.4rem;
    font-weight: 700;
}

.time {
    min-height: 50px;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}

button {
    width: 100%;
    margin-top: 20px;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    background: linear-gradient( 135deg, #3b82f6, #8b5cf6 );
    transition: 0.2s;
}

    button:hover {
        transform: scale(1.02);
    }

    button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background: #555;
        transform: none;
    }

.history-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(12px);
}

.history-content {
    display: flex;
    flex-direction: column;
}

.history-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.history-time {
    color: rgba(255,255,255,0.7);
}

.delete-history-btn {
    width: auto;
    margin-top: 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient( 135deg, #ef4444, #dc2626 );
    font-size: 1rem;
}

@media (max-width: 768px) {

    body {
        padding: 20px;
    }

    .header h1 {
        font-size: 2.2rem;
    }

    .today {
        font-size: 1.1rem;
    }

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

    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .delete-history-btn {
        width: 100%;
    }
}
