/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(to right, #a2c2e6, #a29bfe);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

a:hover, a:visited, a:link, a:active {
    text-decoration: none;
}

.no-shortcut-message {
    color: red;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    padding: 30px;
    border: 2px solid red;
    background-color: #f8d7da;
    border-radius: 5px;
    display: block;
}

/* Maintenance Message Styles */
body.maintenance-mode {
    overflow: hidden;  /* Prevent body scroll */
}

.maintenance-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 9999;
}

.maintenance-message {
    background-color: #f8d7da;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 80%;
    max-width: 600px;
    font-family: 'Roboto', sans-serif;
    color: #721c24;
}

.maintenance-message h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.maintenance-message p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.maintenance-message a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.maintenance-message p i {
    font-size: 1.2rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    color: white;
    background: linear-gradient(45deg, #ff7e5f, #feb47b, #6a11cb, #2575fc);
    background-size: 400% 100%;
    animation: gradienMove 15s linear infinite;
    padding: 10px 20px;
    text-align: right;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@keyframes gradienMove {
    0% {
        background-position: 100% 0;
    }
    50% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 0;
    }
}

.header-left, .header-right {
    display: inline-block;
    vertical-align: middle;
}

h2 {
    display: flex;
    justify-content: left;
    align-items: flex-start;
    margin-top: 2px;
    margin-bottom: -60px;
    flex-wrap: wrap;
    font-style: italic;
}

.body-links {
    display: flex;
    justify-content: right;
    align-items: flex-end;
    gap: 20px;
    margin-top: 35px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.body-links a {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 25px;
    background-color: rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease-in-out;
    font-size: 12px;
}

.body-links a:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.body-links a:active {
    transform: translateY(0);
}

main {
    padding-top: 80px;
}

.moving-message {
    background-color: #f1f1f1;
    border-radius: 20px;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    color: #333;
    font-style: italic;
}

marquee {
    color: blue;
    font-size: 14px;
}

#back-to-top {
        position: fixed;
        bottom: 60px;
        right: 10px;
        background-color: gray;
        color: skyblue;
        border: none;
        padding: 6px 10px;
        border-radius: 80%;
        font-size: 20px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    #back-to-top:hover {
        background-color: #2980b9;
    }

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(45deg, #ff7e5f, #feb47b, #6a11cb, #2575fc);
    z-index: 1000;
    padding: 20px 0;
    text-align: right;
    color: whitesmoke;
}

footer .container {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 0 20px;
}

footer p {
    font-size: 1rem;
    font-style: italic;
    font-weight: bold;
}

body {
    padding-bottom: 50px;
}

/* Header */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .header-left {
    display: flex;
    align-items: center;
}

header .header-left .logo {
    width: 60px;
    height: auto;
    margin-right: 15px;
    border: 1px solid blue;
    border-radius: 50%;
    padding: 0px;
    display: inline-block;
}

header h1 {
    font-size: 1.8rem;
}

header .header-right {
    display: flex;
    align-items: center;
}

header input[type="text"] {
    padding: 8px;
    border-radius: 25px;
    border: 1px solid #ddd;
    margin-right: 20px;
    width: 500px;
    transition: all 0.3s ease;
}

header input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
}

header .btn-dashboard {
  padding: 10px;
  font-size: 18px;
  border-radius: 30px;
  color: greenyellow;
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.3s, transform 0.3s;
}

header .btn-dashboard {
    background-color: #007bff;
    border: 2px solid greenyellow;
}

header .btn-dashboard:hover {
    background-color: #0056b3;
    border-color: rebeccapurple;
    transform: translateY(-3px);
}

header .btn-dashboard:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.6);
}

header .btn-login {
    padding: 15px;
    font-size: 1.5rem;
    border-radius: 50%;
    color: white;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, transform 0.3s;
    width: 50px;
    height: 50px;
}

header .btn-login i {
    font-size: 1.5rem;
}

header .btn-login {
    background-color: #007bff;
    border: 2px solid #007bff;
}

header .btn-login:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-3px);
}

header .btn-login:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.6);
}

/* Main Content */
main {
    padding: 120px 0;
    background-color: #ffffff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.shortcut-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

.shortcut-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.shortcut-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.shortcut-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.shortcut-clicks {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
    margin-right: 2px;
    text-align: right;
}

.shortcut-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.shortcut-name {
    padding: 10px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #fff;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1050px) {
    header {
        padding: 10px;
        text-align: center;
    }

    header h1 {
        display: none;
    }

    header .header-left {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    header .header-left .logo {
        width: 50px;
        height: auto;
        margin-left: -40px;
        margin-right: 2px;
    }

    header .header-right {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 10px;
    }

    header input[type="text"] {
        padding: 10px 10px;
        border-radius: 60px;
        border: 1px solid #ddd;
        margin-right: -5px;
        margin-bottom: 12px;
        width: 99%;
        max-width: 430px;
        transition: all 0.3s ease;
    }

    header .header-right .btn-dashboard {
        background-color: #28a745;
        color: white;
        border: none;
        padding: 10px;
        border-radius: 50%;
        font-size: 18px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        margin-left: 19px;
        margin-right: -30px;
        margin-bottom: 12px;
    }

    header .header-right .btn-login {
        display: inline-flex;
        padding: 6px 10px;
        background-color: #007bff;
        border-radius: 30%;
        color: white;
        font-size: 10px;
        transition: background-color 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    header .btn-login:hover {
        background-color: #0056b3;
    }

    header input[type="text"]:not(:focus) {
        width: 90%;
    }

    .shortcut-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 10px;
    }

    .shortcut-card {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 10px;
        transition: transform 0.3s ease;
        text-align: center;
    }

    .shortcut-card:hover {
        transform: translateY(-5px);
    }

    .shortcut-image {
        width: 100%;
        max-height: 120px;
        object-fit: cover;
        border-radius: 8px;
    }

    .shortcut-name {
        font-size: 14px;
        font-weight: bold;
        color: #333;
        margin-top: 10px;
        text-transform: capitalize;
    }

    .shortcut-clicks {
        font-size: 12px;
        color: #777;
        margin-top: 2px;
        text-align: right;
    }

    h2 {
        display: none;
    }

    .moving-message {
        background-color: #f1f1f1;
        border-radius: 20px;
        padding: 5px;
        text-align: center;
        font-weight: bold;
        color: #333;
        font-style: italic;
    }

    marquee {
        color: skyblue;
        font-size: 12px;
    }

    footer {
        padding: 20px;
        background: #f9f9f9;
        text-align: center;
    }

    footer p {
        font-size: 14px;
        color: #333;
    }
}

@media (max-width: 480px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        color: white;
        background: linear-gradient(90deg, #ff7e5f, #feb47b, #6a11cb, #2575fc);
        background-size: 300% 100%;
        animation: gradienMove 15s linear infinite;
        padding: 3px 10px;
        text-align: right;
        width: 100%;
        z-index: 1000;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    @keyframes gradienMove {
        0% {
            background-position: 100% 0;
        }
        50% {
            background-position: 0 0;
        }
        100% {
            background-position: 100% 0;
        }
    }

    header h1 {
        display: none;
    }

    header .header-left {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    header .header-left .logo {
        width: 50px;
        height: auto;
        margin-left: -40px;
        margin-right: 12px;
        margin-top: 0px;
    }

    header .header-right {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 10px;
    }

    header input[type="text"] {
        padding: 10px 10px;
        border-radius: 60px;
        border: 1px solid #ddd;
        margin-right: -5px;
        margin-bottom: 12px;
        width: 99%;
        max-width: 430px;
        transition: all 0.3s ease;
    }

    header .header-right .btn-dashboard {
        background-color: #28a745;
        color: white;
        border: none;
        padding: 10px;
        border-radius: 50%;
        font-size: 18px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        margin-left: 19px;
        margin-right: -30px;
        margin-bottom: 12px;
    }

    header .header-right .btn-login {
        display: inline-flex;
        padding: 6px 10px;
        background-color: #007bff;
        border-radius: 30%;
        color: white;
        font-size: 10px;
        transition: background-color 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    header .btn-login:hover {
        background-color: #0056b3;
    }

    header input[type="text"]:not(:focus) {
        width: 90%;
    }

    .body-links {
        display: flex;
        justify-content: right;
        align-items: flex-end;
        gap: 20px;
        margin-top: 10px;
        margin-bottom: 5px;
        flex-wrap: wrap;
    }


    .shortcut-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 10px;
    }

    .shortcut-card {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 10px;
        transition: transform 0.3s ease;
        text-align: center;
    }

    .shortcut-card:hover {
        transform: translateY(-5px);
    }

    .shortcut-image {
        width: 100%;
        max-height: 120px;
        object-fit: cover;
        border-radius: 8px;
    }

    .shortcut-name {
        font-size: 14px;
        font-weight: bold;
        color: #333;
        margin-top: 10px;
        text-transform: capitalize;
    }

    .shortcut-clicks {
        font-size: 12px;
        color: #777;
        margin-top: 2px;
        text-align: right;
    }

    h2 {
        display: none;
    }

    /* Maintenance Message Styles */
    body.maintenance-mode {
        overflow: hidden;  /* Prevent body scroll */
    }

    .maintenance-container {
        display: flex;
        padding-top: 0px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        overflow: hidden;
        z-index: 9999;
    }

    .maintenance-message {
        background-color: #f8d7da;
        margin-top: -250px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
        text-align: center;
        width: 80%;
        max-width: 600px;
        font-family: 'Roboto', sans-serif;
        color: #721c24;
    }


    .moving-message {
        background-color: #f1f1f1;
        border-radius: 20px;
        margin-top: -25px;
        padding: 5px;
        text-align: center;
        font-weight: bold;
        color: #333;
        font-style: italic;
    }

    marquee {
        color: skyblue;
        font-size: 12px;
    }

    #back-to-top {
        position: fixed;
        font-weight: bold;
        padding: 8px 10px;
        bottom: 53px;
        right: 10px;
        background-color: gray;
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 18px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    #back-to-top:hover {
        background-color: #2980b9;
    }

    footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(45deg, #ff7e5f, #feb47b, #6a11cb, #2575fc);
    z-index: 1000;
    padding: 17px 0;
    text-align: right;
    color: whitesmoke;

    footer p {
        font-size: 14px;
        color: #333;
    }
}
