/* ========== GLOBAL ========== */
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: radial-gradient(circle at top, #1b1b1b, #0d0d0d);
    color: #e5e5e5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ========== WORK PAGE ========== */
#work {
    background: rgba(20, 20, 20, 0.95);
    padding: 40px 50px;
    border-radius: 20px;
    width: 420px;
    text-align: center;
    border: 1px solid #2a2a2a;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    position: relative;
}

/* Timer */
#timer {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #00e5ff;
    text-shadow: 0 0 12px rgba(19, 30, 32, 0.5);
}

/* Buttons main */
#work button {
    background: linear-gradient(135deg, #3e549c, #0f5bd7);
    color: #fff;
    border: none;
    padding: 13px 22px;
    margin: 6px;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

#work button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

#work button:active {
    transform: translateY(1px);
}

/* Settings button (top-right icon) */
#setbtn {
    position: absolute;
    top: 15px;
    right: 19px;

    width: 44px;
    height: 44px;

    background: #121010;
    /* نفس لون الباك جراوند */
    border: 1px solid #2a2a2a;
    border-radius: 50%;

    display: flex;
    /* الحل السحري للمحاذاة */
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: background 0.25s ease;
}

#setbtn::before {
    content: "⚙️";
    font-size: 18px;
    line-height: 1;
    /* يمنع نزول الإيموجي لتحت */
}

#setbtn:hover {
    background: #5b2d8b;
    /* بنفسجي هادي */
}

/* Count & today */
#count {
    margin-top: 15px;
    font-size: 14px;
    color: #aaa;
}

#today {
    margin-top: 18px;
    padding: 10px;
    border-radius: 10px;
    background: #141414;
    border: 1px solid #2b2b2b;
    font-size: 14px;
    color: #ccc;
}

/* start from now */
#startfromnow {
    margin-top: 15px;
    width: 100%;
    background: linear-gradient(135deg, #00bfa5, #00897b);
}

/* ========== SETTINGS PAGE ========== */
#pageset {
    background: rgba(18, 18, 18, 0.97);
    padding: 35px 30px;
    border-radius: 20px;
    width: 420px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

/* labels */
#pageset label {
    display: block;
    margin: 18px 0 6px;
    font-size: 14px;
    color: #bbb;
}

/* inputs */
#pageset input[type="number"],
#pageset input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #3a3a3a;
    background: #151515;
    color: #eee;
    font-size: 15px;
}

#pageset input:focus {
    outline: none;
    border-color: #1e90ff;
    box-shadow: 0 0 8px rgba(30, 144, 255, 0.4);
}

/* settings buttons */
#pageset button {
    width: 100%;
    margin-top: 14px;
    padding: 13px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(135deg, #2c2c2c, #245893);
    color: #eee;
    transition: 0.25s ease;
}

#pageset button:hover {
    background: #333;
}

/* back button (same place as settings) */
#backwork {
    position: flex;
    top: 12px;
    right: 12px;

    width: 34px;
    /* صغير */
    height: 34px;
    padding: 0;
    margin: 0;

    border-radius: 50%;
    background: #121212;
    border: 1px solid #2a2a2a;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* أيقونة السهم */
#backwork::before {
    content: "←";
    font-size: 14px;
    color: #aaa;
}

#backwork:hover {
    background: #5b2d8b;
    /* بنفسجي هادي */
}

/* reset all */
#resetall {
    background: linear-gradient(135deg, #b71c1c, #7f0000);
    color: #fff;
}

/* ========== CONFIRM BOX ========== */
#sure {
    margin-top: 20px;
    padding: 18px;
    background: #0f0f0f;
    border-radius: 14px;
    border: 1px solid #333;
    text-align: center;
}

#sure p {
    margin-bottom: 15px;
    color: #ffb4b4;
    font-size: 14px;
}

#sure button {
    width: 45%;
    margin: 5px;
}

#yes {
    background: linear-gradient(135deg, #c62828, #8e0000);
    color: #fff;
}

#no {
    background: #2e2e2e;
}