* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1e1e2f;
    color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    word-wrap: break-word;
    min-height: 100vh;
    line-height: 1.6;
}

header {
    background: #2a2a40;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.site-name {
    color: #00ffcc;
    margin: 0;
    font-size: 24px;
    text-decoration: none;
    white-space: nowrap;
}

nav {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #00ffcc;
    text-decoration: underline;
}

.nav-primary {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-auth {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav {
        width: 100%;
    }
    
    .nav-primary, .nav-auth {
        width: 100%;
        justify-content: flex-start;
    }
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.container {
    background: #2a2a40;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 1200px;
    margin: 2rem auto;
}

.counter-section {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 2px solid #444;
    margin-bottom: 2rem;
}

.timer-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00ffcc;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.count-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
}

.count-display span:first-child {
    font-size: 5rem;
    font-weight: bold;
    color: #00ffcc;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s;
}

.count-display span:first-child:hover {
    transform: scale(1.1);
}

.count-display span:first-child:active {
    transform: scale(0.95);
}

.count-label {
    font-size: 1.2rem;
    color: #ffffff;
    margin-top: 0.5rem;
    font-weight: 500;
}

.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: #00ffcc;
    color: #1e1e2f;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.4);
    background: #00e6b8;
}

.btn-secondary {
    background: #2a2a40;
    color: #ffffff;
    border: 1px solid #00ffcc;
}

.btn-secondary:hover {
    background: #1e1e2f;
    transform: translateY(-2px);
}

.btn-success {
    background: #00ffcc;
    color: #1e1e2f;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.4);
    background: #00e6b8;
}

.progress-section {
    margin: 2rem 0;
}

.progress-section h2 {
    margin-bottom: 1rem;
    color: #00ffcc;
    text-align: center;
}

#progressTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #1e1e2f;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

#progressTable thead {
    background: #2a2a40;
    color: #00ffcc;
}

#progressTable th,
#progressTable td {
    padding: 1rem;
    text-align: left;
}

#progressTable tbody tr {
    border-bottom: 1px solid #444;
}

#progressTable th,
#progressTable td {
    color: #ffffff;
}

#progressTable tbody tr:last-child {
    border-bottom: none;
    font-weight: bold;
    background: #2a2a40;
}

#progressTable tbody tr:hover {
    background: #2a2a40;
}

.delete-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.delete-btn:hover {
    background: #ff5252;
    transform: scale(1.05);
}

.content-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #444;
}

.content-section h1 {
    color: #00ffcc;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.content-section h2 {
    color: #00ffcc;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.8rem;
}

.content-section h3 {
    color: #00ffcc;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.3rem;
}

.content-section p {
    margin-bottom: 1rem;
    color: #ffffff;
    text-align: justify;
}

.features-list {
    list-style: none;
    padding-left: 0;
}

.features-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #ffffff;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00ffcc;
    font-weight: bold;
    font-size: 1.2rem;
}

.cta-section {
    background: #2a2a40;
    border: 2px solid #00ffcc;
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: center;
}

.cta-section h2 {
    color: #00ffcc;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #ffffff;
    text-align: center;
}

footer {
    background-color: #1e1e2f;
    color: white;
    text-align: center;
    padding: 1em 0;
    position: relative;
    bottom: 0;
    width: 100%;
    overflow-x: hidden;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #00ffcc;
    text-decoration: underline;
}

.footer-copyright {
    color: #ffffff;
    font-size: 14px;
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {

    .timer-display {
        font-size: 2rem;
    }

    .count-display span:first-child {
        font-size: 3.5rem;
    }

    .controls {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    #progressTable {
        font-size: 0.9rem;
    }

    #progressTable th,
    #progressTable td {
        padding: 0.5rem;
    }

    .content-section h1 {
        font-size: 2rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }
}

