/* M Shahruz Z Q — Mobile Site CSS */
/* Single-column stacked layout; matches desktop colour scheme */

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

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom,
        rgba(255,255,255,0),
        rgba(75,0,130,0.15),
        rgba(75,0,130,0.35));
    min-height: 100vh;
}

h1 {
    font-size: 20px;
    text-align: left;
    padding: 3% 4%;
    margin: 0;
    color: gray;
    border: 0;
}

#h1max {
    display: block;
    text-align: center;
    padding: 5% 6%;
    margin: 3% 4%;
    color: white;
    background-color: indigo;
    font-size: 22px;
}

h4 {
    font-size: 20px;
    text-align: left;
    padding: 4% 0 1% 0;
    margin: 1% 0;
    color: indigo;
    background-color: white;
    border: 0;
}

hr {
    padding-top: 1%;
    border: 0;
    background-image: url('/images/Image-0-1.jpg');
    background-size: cover;
    height: 16px;
    margin: 0;
}

hr.hrmin {
    border: 0;
    background-image: url('/images/Image-0-2.jpg');
    background-size: cover;
    height: 8px;
    margin: 4px 0;
}

/* ── Navigation — top bar, full width, natural document flow ── */
nav {
    position: static;
    font-size: 15px;
    text-align: center;
    padding: 8px 4px;
    margin: 0 0 4px 0;
    color: white;
    background-color: gray;
    opacity: 0.9;
    line-height: 2;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

nav a {
    color: white;
    background-color: gray;
    text-decoration: none;
    display: inline-block;
    padding: 3px 10px;
}

nav a:hover {
    color: gray;
    background-color: white;
}

.nav-logout {
    font-size: 15px;
    color: white;
    background-color: gray;
    border: none;
    padding: 3px 10px;
    cursor: pointer;
    line-height: 2;
}

.nav-logout:hover {
    color: gray;
    background-color: white;
}

#navwide {
    position: static;
    font-size: 15px;
    text-align: center;
    padding: 8px 4px;
    margin: 3% 4%;
    color: white;
    background-color: gray;
    opacity: 0.9;
    line-height: 2;
    width: auto;
    min-width: unset;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

#navwide a {
    color: white;
    background-color: gray;
    text-decoration: none;
    display: inline-block;
    padding: 3px 10px;
}

#navwide a:hover {
    color: gray;
    background-color: white;
}

/* ── General links ── */
a {
    color: white;
    background-color: gray;
    text-decoration: none;
}

a:hover {
    color: gray;
    background-color: white;
}

a.alta {
    color: white;
    background-color: indigo;
    text-decoration: none;
}

a.classica {
    color: indigo;
    background-color: gray;
    text-decoration: none;
}

/* ── Buttons ── */
button, .btn {
    color: white;
    background-color: indigo;
    border: none;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 14px;
}

button:hover, .btn:hover {
    color: indigo;
    background-color: white;
    border: 1px solid indigo;
}

/* ── Auth / Sign-in form — full-width stacked ── */
#authform-wrapper {
    position: static;
    margin: 8px 0;
    font-size: 13px;
    padding: 12px 4%;
    border-top: 1px dashed indigo;
    border-bottom: 1px dashed indigo;
    color: indigo;
    background-color: white;
    opacity: 0.95;
    width: 100%;
}

#authform-wrapper .formheader {
    font-size: 13px;
    padding: 6px 8px;
    border: 2px double indigo;
    color: white;
    background-color: indigo;
    margin-bottom: 10px;
}

#authform-wrapper input[type="text"],
#authform-wrapper input[type="email"],
#authform-wrapper input[type="password"] {
    font-size: 14px;
    width: 100%;
    margin-bottom: 6px;
    border: 1px solid indigo;
    padding: 5px 7px;
}

#authform-wrapper label { font-size: 12px; color: indigo; }
#authform-wrapper .auth-links { margin-top: 8px; font-size: 12px; }
#authform-wrapper .error-msg   { color: red;   font-size: 12px; margin-top: 4px; }
#authform-wrapper .success-msg { color: green; font-size: 12px; margin-top: 4px; }

/* ── Subscribe form — full-width stacked ── */
#subscribe-wrapper {
    position: static;
    font-size: 13px;
    padding: 12px 4%;
    margin: 0;
    color: white;
    background-color: indigo;
    opacity: 0.85;
    width: 100%;
    min-width: unset;
    max-width: 100%;
}

#subscribe-wrapper:hover { opacity: 0.95; }

#subscribe-wrapper label { font-size: 12px; color: white; }

#subscribe-wrapper input[type="text"],
#subscribe-wrapper input[type="email"],
#subscribe-wrapper input[type="number"],
#subscribe-wrapper select {
    font-size: 13px;
    width: 100%;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.15);
    border: 1px solid white;
    color: white;
    padding: 5px 6px;
}

#subscribe-wrapper select option { color: indigo; background: white; }

#subscribe-wrapper .subscribe-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding-bottom: 5px;
}

#subscribe-wrapper .result-msg {
    margin-top: 8px;
    font-size: 12px;
    background: rgba(255,255,255,0.15);
    padding: 5px;
    word-break: break-word;
}

/* ── Get content form — full-width stacked ── */
#getform-wrapper {
    position: static;
    font-size: 13px;
    padding: 12px 4%;
    margin: 0;
    color: white;
    background-color: indigo;
    opacity: 0.85;
    width: 100%;
}

#getform-wrapper label { font-size: 12px; color: white; }

#getform-wrapper input[type="text"] {
    font-size: 13px;
    width: 100%;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.15);
    border: 1px solid white;
    color: white;
    padding: 5px 6px;
}

#getform-wrapper .result-link { margin-top: 8px; font-size: 12px; word-break: break-all; }
#getform-wrapper .result-link a { color: white; text-decoration: underline; }
#getform-wrapper .error-msg { color: #ffcccc; font-size: 12px; margin-top: 4px; }

/* ── Main content area — full width ── */
.content-area {
    font-size: 13px;
    padding: 12px 4%;
    margin: 0;
    color: white;
    background-color: indigo;
    opacity: 0.85;
    width: 100%;
}

/* ── Services / Info div — full width ── */
.info-area {
    font-size: 13px;
    padding: 12px 4%;
    margin: 0;
    color: white;
    background-color: indigo;
    opacity: 0.85;
    width: 100%;
}

.info-area ol { padding-left: 20px; }

.info-area a.alta {
    color: white;
    background-color: indigo;
    text-decoration: underline;
}

.about-area {
    font-size: 13px;
    padding: 12px 4%;
    margin: 0;
    color: indigo;
    background-color: gray;
    opacity: 0.85;
    width: 100%;
}

.about-area ol { padding-left: 20px; }

.about-area a.alta {
    color: indigo;
    background-color: gray;
    text-decoration: underline;
}

/* ── Home page centre box ── */
.home-box {
    text-align: center;
    padding: 5% 5%;
    margin: 3% 4%;
    color: white;
    background-color: indigo;
    font-size: 14px;
}

.home-box a       { color: white;  background-color: indigo; }
.home-box a:hover { color: indigo; background-color: white;  }

/* ── User / Dashboard area — full width ── */
.user-area {
    margin: 0;
    padding: 4% 4%;
    color: white;
    background-color: indigo;
    opacity: 0.9;
    font-size: 13px;
    width: 100%;
}

.user-area h2 { font-size: 18px; color: white; margin-top: 0; }

.user-area table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.user-area th, .user-area td {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 5px 8px;
    text-align: left;
    white-space: nowrap;
}

.user-area th { background: rgba(255,255,255,0.15); }

.user-area label {
    font-size: 13px;
    color: white;
    display: block;
    margin-top: 8px;
}

.user-area input[type="text"],
.user-area input[type="file"],
.user-area input[type="number"],
.user-area input[type="url"],
.user-area input[type="password"],
.user-area select {
    font-size: 13px;
    width: 100%;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 5px 7px;
}

.user-area .success-msg { color: #aaffaa; font-size: 12px; margin-top: 5px; }
.user-area .error-msg   { color: #ffaaaa; font-size: 12px; margin-top: 5px; }

.user-area .section-title {
    font-size: 15px;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 5px;
    margin-top: 18px;
    margin-bottom: 10px;
}

/* ── Livewire loading indicator ── */
[wire\:loading] { opacity: 0.5; }

/* ── Livewire pagination — override nav rule so it doesn't get sidebar styling ── */
nav[role="navigation"],
nav.mt-4 {
    position: static !important;
    background: transparent !important;
    opacity: 1 !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 0;
    margin: 0;
}
