/* public/css/style.css */

/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1e293b, #64748b);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Use min-height to ensure it covers viewport and expands with content */
    color: #fff;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.container {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 30px 20px;
    margin: 20px; /* Add some margin for smaller screens */
    width: 100%;
    max-width: 600px;
    color: #1e293b;
    box-sizing: border-box;
}

h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #1e293b;
}

p {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.5;
    color: #475569;
}

#status {
    margin-top: 25px;
    font-size: 18px;
    font-weight: bold;
    color: #007bff; /* A default status color */
}

/* Offer Container (Specific to device_location.html) */
.offer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
}

/* Offer Box */
.offer-box {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 40px 30px;
    width: 100%;
    max-width: 600px;
    color: #1e293b;
    box-sizing: border-box;
}

/* Title */
.offer-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #1e293b;
}

/* Description */
.offer-description {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #475569;
}

/* Buttons Container */
.offer-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px; /* Space below buttons */
}

/* Buttons */
.btn {
    text-decoration: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    color: #fff;
    flex-grow: 1; /* Allow buttons to grow to fill space */
    max-width: 250px; /* Limit max width for large screens */
    text-align: center; /* Ensure text is centered */
}

.facebook-btn {
    background: #4267B2;
    box-shadow: 0 5px 15px rgba(66, 103, 178, 0.4);
}

.facebook-btn:hover {
    background: #365899;
    transform: scale(1.05); /* Slightly less aggressive scale for smaller screens */
}

.telegram-btn {
    background: #0088cc;
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

.telegram-btn:hover {
    background: #007ab8;
    transform: scale(1.05);
}

/* Specific styles for info display */
.info-display {
    text-align: left;
    background-color: #e2e8f0; /* Lighter background for code/info block */
    color: #1e293b;
    padding: 15px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 100%; /* Ensure it fits within parent */
    overflow-x: auto; /* Enable horizontal scrolling for long lines */
    white-space: pre-wrap; /* Preserve whitespace but wrap lines */
    font-family: 'Consolas', 'Monaco', monospace; /* Monospaced font for code-like info */
    font-size: 14px;
}

.status-message {
    margin-top: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #007bff; /* Blue for general status */
}

/* Buttons for camera.html */
.button-group {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.button-group button {
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button-group button:hover {
    background-color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .offer-box, .container {
        padding: 20px;
        margin: 10px;
    }
    .offer-title, h1 {
        font-size: 22px;
    }
    .offer-description, p {
        font-size: 15px;
    }
    .offer-buttons, .button-group {
        flex-direction: column;
        gap: 10px;
    }
    .btn, .button-group button {
        width: 100%;
        max-width: none; /* Remove max-width on small screens */
    }
}
