/* ===============================
   General Styling
   =============================== */
body {
    font-family: sans-serif;
    padding: 30px;
    background: #f9f9f9;
}

h2, h3 {
    color: #2c3e50;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===============================
   Sections & Containers
   =============================== */
.section {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    max-width: 600px;
}

form {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    max-width: 500px;
}

.cid-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 40px auto;
    max-width: 600px;
    width: 100%;
    text-align: center;
}


.login-box {
    display: flex;
    flex-direction: column;


    margin: 40px auto;
    max-width: 600px;
    width: 100%;
}


/* ===============================
   Form Elements
   =============================== */
input,
select,
button,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    box-sizing: border-box;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
    font-size: 15px;
}

button {
    background-color: #3498db;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
}

button:hover {
    background-color: #2980b9;
}

/* ===============================
   Message Box
   =============================== */
.msg {
    padding: 10px;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* ===============================
   Table Styling
   =============================== */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-top: 20px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

th, td {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid #eaeaea;
}

th {
    background-color: #ecf0f1;
    font-weight: 600;
}

/* ===============================
   Copy Popup
   =============================== */
#copyPopup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2ecc71;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    display: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ===============================
   Navbar
   =============================== */
.navbar {
    background-color: #1e1e2f;
    padding: 10px 20px;
    color: #fff;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-brand {
    font-size: 20px;
    font-weight: bold;
}

.navbar-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-links li a:hover {
    color: #00bfff;
}

/* ===============================
   Responsive Design
   =============================== */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
    }

    .navbar-links li {
        width: 100%;
    }

    .navbar-links li a {
        display: block;
        width: 100%;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .section,
    form,
    .cid-box {
        max-width: 100%;
        padding: 15px;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 10px;
        background-color: #fff;
    }

    td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #555;
    }
}

/* Add these specific rules to your mobile media query */

@media (max-width: 768px) {
    /* Remove body padding to make content truly full width */
    body {
        padding: 0;
        font-size: 16px;
    }

    /* Add container padding instead */
    .container {
        padding: 15px;
    }

    /* Make cid-box full width and remove centering */
    .cid-box {
        max-width: none !important;
        width: 100% !important;
        margin: 20px 0 !important;
        align-items: stretch !important;
        padding: 0 !important;
    }

    /* Make the form full width */
    .cid-box form {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 15px !important;
    }

    /* Ensure form elements are full width */
    #installationId,
    #getConfirmationIdBtn {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Other existing mobile styles... */
    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    input,
    select,
    button,
    textarea,
    td,
    th,
    .msg,
    .navbar,
    .navbar a {
        font-size: 16px;
    }

    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
    }

    .navbar-links li {
        width: 100%;
    }

    .navbar-links li a {
        display: block;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .section,
    form {
        max-width: 100%;
        padding: 15px;
    }

    button {
        padding: 12px 20px;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 10px;
        background-color: #fff;
    }

    td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #555;
    }
}