@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@400..800&display=swap');

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

:root {
    --primary-color: #ffffff;
    --secondary-color: #e0e0e0;
    --accent-color: #007aff;
}

body {
    font-family: 'Baloo Bhaijaan 2', sans-serif !important;
    background: linear-gradient(356deg, #000000 0%, #212537 100%);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    padding-bottom: 4rem; /* Add space for the fixed footer */
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    justify-content: space-between; /* Add this line */
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 2.5rem;
    width: 100%;
    max-width: 600px;
    text-align: center;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: scale(1.02);
}

.logo-container {
    margin-bottom: 1.5rem;
}

.logo-container img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

h1.main-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

p.subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.instructions {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: right;
    margin-bottom: 2rem;
}

.instructions h4 {
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.instructions ol {
    padding-right: 1.5rem;
    list-style-position: outside;
}

.instructions li {
    margin-bottom: 0.5rem;
}

.start-button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.25rem;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
}

.start-button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.6);
    color: var(--primary-color);
}

.footer-text {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-align: center;
    pointer-events: none; /* Allows clicking through it */
}

/* Styles for show_detail.php */
.device-info {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.info-item {
    margin-bottom: 1rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item h4 {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.info-item p {
    font-size: 1.1rem;
    color: var(--primary-color);
    word-wrap: break-word;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 5px;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.action-btn {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.action-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    body {
        align-items: flex-start; /* Align card to top on mobile */
    }

    .glass-card {
        padding: 2rem 1.5rem;
    }

    h1.main-title {
        font-size: 2rem;
    }

    p.subtitle {
        font-size: 1rem;
    }

    .start-button {
        font-size: 1.1rem;
        padding: 0.8rem 2.2rem;
    }

    .instructions ol {
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 1.5rem 1rem;
    }

    h1.main-title {
        font-size: 1.8rem;
    }

    .instructions h4 {
        font-size: 1.1rem;
    }

    .instructions li {
        font-size: 0.9rem;
    }

    .action-buttons {
        flex-direction: column; /* Stack buttons vertically */
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

  .link-title {
    color: inherit;
    text-decoration: none;
  }

  .link-title:hover {
    text-decoration: underline;
  }