/* === RESET === */
/*
Theme Name: My Blank Theme
Theme URI:  https://example.com
Author:     WP Innovator
Author URI: https://example.com
Description: A custom theme that displays a blank home page.
Version:    1.0
License:    GPLv2 or later
Text Domain: my-blank-theme
*/
/* === Sci-Fi Customer Dashboard UI === */

/* Import a sci-fi styled font from Google Fonts */
/* @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap'); */

:root {
    --accent: #00ffc6;
    --accent-dark: #00cc9f;
    --text-light: #c5c6c7;
    --bg-dark: #0b0c10;
    --box-shadow: 0 0 15px var(--accent);
}

body {
    /* background: #0b0c10; */
    /* color: #c5c6c7; */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    /* box-shadow: 0 0 15px #00ffc6; */
}

body {
    background: var(--bg-dark);
    color: var(--text-light);
}

.logout-btn {
    background-color: var(--accent);
    box-shadow: var(--box-shadow);
}

/* Import a sci-fi styled font from Google Fonts */


/* Ensure the page is completely dark and full-screen */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    /* background-color: #0b0c10; */
    /* color: #fff; */
    font-family: 'Orbitron', sans-serif;
}

/* --- Sticky footer layout fix --- */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* background-color: #0b0b0d; */
    /* color: #fff; */
}


body.light-theme {
    --bg-dark: #f0f0f0;
    --text-light: #111;
    --accent: #006eff;
    --accent-dark: #0055aa;
}

.loader {
    display: none;
    border: 6px solid #111;
    border-top: 6px solid var(--accent);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}








/* === LAYOUT === */
.header-container {
text-align: center;
    color: #00fff7;
    text-shadow: 0 0 10px #00fff7;
    margin-bottom: 30px;
}

.wrap {
padding: 20px;
}

.login-wrapper {
    max-width: 600px;
    width: 90%;
    margin: 40px auto;
    padding: 40px 30px;
    background: #111317;
    border-radius: 12px;
    box-shadow: 0 0 15px #00ffcc;
    text-align: center;
}

@media (max-width: 600px) {
    .login-wrapper input,
    .login-wrapper button {
        width: 90%;
    }

    .mpr-dashboard-block {
        flex-direction: column;
    }

    .mpr-create-link-button-block {
        flex-direction: column;
        gap: 10px;
    }
}

/* Stretch input fields */
.login-wrapper input,
.login-wrapper button {
    width: 50%;
    max-width: 500px;          /* Optional: don't go wider than this */
    margin: 10px auto;
    display: block;
}

.cf-captcha-block {
    display: flex;
    flex-direction: column;
    align-content: space-between;
    justify-content: space-between;
    align-items: center;
}

/* Wrapper pushes footer down */
.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* This keeps content vertically centered */
    align-items: center;
    padding: 20px;
}

.redi-page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    width: 100%;
}

.wrap {
    flex: 1;
}


/* === TYPOGRAPHY === */
.mpr-dashboard-block {
    display: flex;
    align-content: space-between;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
    font-family: 'Orbitron', sans-serif;
    color: #00ffcc;
    font-weight: bold;
    text-shadow: 0 0 6px #00ffcc;
}

.mpr-create-link-block {
    display: flex;
    flex-direction: column;
}

.mpr-create-link-button-block {
    display: flex;
    flex-direction: column;
}

h2.dashboard-title,
h2.form-title {
    text-align: center;
    color: #00fff7;
    text-shadow: 0 0 10px #00fff7;
    margin-bottom: 30px;
    margin-right: 15px;
}

/* Title styling */
.sci-swal-title {
    color: #00ffcc;
    font-weight: bold;
    text-shadow: 0 0 6px #00ffcc;
}

/* Sci-fi style label */
.swal-label {
    display: block;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    color: #00ffff;
    margin-bottom: 6px;
    margin-top: 18px;
    text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff66;
    letter-spacing: 0.5px;
}

/* Style and center the hidden text */
.main-page-text {
position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  text-align: center;
  z-index: 1;
  user-select: none; /* Prevents text selection */
  color: #fff; /* Explicitly set text color to white */
}


/* === FORM-ELEMENTS === */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #111317 inset !important; /* Your desired background color */
    -webkit-text-fill-color: #fff !important; /* Your desired text color */
    transition: background-color 5000s ease-in-out 0s;
}

.form-table {
    width: 100%;
    border-spacing: 10px;
}

.form-table th,
.form-table td {
    padding: 10px;
    text-align: left;
    color: #fff;
}

input[type="text"],
input[type="number"],
input[type="url"],
input[type="password"],
textarea {
    background-color: #111317;
    border: 1px solid #00ffcc;
    border-radius: 6px;
    color: #eeee;
    /* font-family: 'Courier New', monospace; */
    padding: 10px;
    width: 100%;
    box-shadow: 0 0 8px #00ffcc33;
    transition: border 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea#customer_notification_text:focus,
textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 12px #00ffffaa;
}

.swal2-input,
.swal2-textarea {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin: 6px 0;
}

/* Input + Textarea styling */
.custom-sci-input {
    background: #1a1a1a !important;
    color: #00ffcc !important;
    border: 1px solid #00ffcc55 !important;
    box-shadow: inset 0 0 5px #00ffcc33;
    border-radius: 6px;
}


/* === BUTTONS === */
.logout-btn {
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #00ffc6;
    color: #000;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
}

.logout-btn:hover {
    background-color: #00cc9f;
}

.mpr-create-link-button-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.links-actions {
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.mpr-create-form-buttons {
    display: flex;
    align-items: baseline;
    justify-content: center;
}


/* Sci-fi style for the Notification Text textarea */
textarea#customer_notification_text {
    background-color: #111317;
    border: 1px solid #00ffcc;
    border-radius: 6px;
    /* color: #00ffcc; */
    font-family: 'Courier New', monospace;
    padding: 10px;
    resize: vertical;
    width: 100%;
    min-height: 90px;
    box-shadow: 0 0 8px #00ffcc33;
    transition: border 0.3s, box-shadow 0.3s;
}


.button.sci-fi {
    background: #00ffc6;
    color: #000;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    box-shadow: 0 0 10px #00ffc6;
    cursor: pointer;
    margin-top: 10px;
    /* max-width: 35%; */
}

.button.sci-fi:hover {
    background: #00cc9f;
}

.sci-fi-btn {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    color: #000;
    font-weight: bold;
    text-align: center;
    margin-right: 5px;
    text-decoration: none;
}

.sci-fi-btn.preview {
    background: #00ffc6;
}

.sci-fi-btn.preview:hover {
    background: #00cc9f;
}

.sci-fi-btn.delete-link {
    background: #ff4c4c;
    color: #fff;
}

.sci-fi-btn.delete-link:hover {
    background: #cc0000;
}

.sci-fi-btn.edit-link {
    background: #517aeb;
}

.sci-fi-btn.edit-link:hover {
    background: #2053e0;
}

/* Confirm + Cancel buttons */
.sci-btn {
    padding: 8px 20px !important;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    box-shadow: 0 0 6px #00ffcc88;
    transition: 0.2s;
}

.sci-btn-green {
    background-color: #00ffcc;
    color: #000;
}

.sci-btn-red {
    background-color: #ff3b3b;
    color: #fff;
}

.sci-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 12px #00ffcccc;
}

.swal-sci-confirm {
    background: #00ffc3 !important;
    color: #000 !important;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 8px 24px;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 12px #00ffc399;
    transition: background 0.3s ease;
}

.swal-sci-confirm:hover {
    background: #00cfa3 !important;
}

.swal-sci-confirm {
    background-color: #00ffc3 !important;
    color: #000 !important;
    border-radius: 6px;
    padding: 8px 24px;
    font-weight: bold;
    box-shadow: 0 0 12px #00ffc3aa;
}

.swal-sci-confirm:hover {
    background-color: #00cfa3 !important;
}

.swal-sci-confirm.danger {
    background-color: #ff4d4d !important;
    color: white !important;
    box-shadow: 0 0 10px #ff4d4daa;
}

.swal-sci-cancel {
    background-color: #222 !important;
    color: #aaa !important;
    border-radius: 6px;
    padding: 8px 24px;
    font-weight: bold;
    box-shadow: 0 0 8px #444;
}


/* === TABLES === */
.widefat.sci-fi-table {
    width: 100%;
    margin: 0 auto 40px auto;
    background: #1c1e22;
    border-collapse: collapse;
    box-shadow: 0 0 15px #00ffc6;
}

.widefat.sci-fi-table th,
.widefat.sci-fi-table td {
    padding: 10px;
    border: 1px solid #333;
    text-align: left;
    color: #ddd;
}

.widefat.sci-fi-table th {
    background: #111317;
    color: #00ffc6;
    /* text-shadow: 0 0 5px #00ffc6; */
}

/* Dropdown & Label in Sci-Fi Theme */
.limit-controls label {
    color: #00ffcc;
    margin-right: 8px;
    font-family: 'Orbitron', sans-serif;
}

.limit-controls select {
    background-color: #111317;
    color: #00ffcc;
    border: 1px solid #00ffcc;
    border-radius: 6px;
    padding: 6px 10px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 6px #00ffcc44;
    transition: all 0.3s ease;
}

.limit-controls select:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px #00ffff88;
}


/* Flex layout for controls */
.unified-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Group buttons with consistent spacing */
.button-controls form {
    display: inline-block;
    margin-right: 10px;
}

/* Add spacing below on mobile */
@media (max-width: 600px) {
    .unified-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    .limit-controls {
        margin-top: 10px;
    }
}

.pagination {
    text-align: center;
    margin: 30px auto 10px auto;
}

.pagination a {
    display: inline-block;
    padding: 5px 7px;
    margin: 0 2px;
    background-color: #111317;
    border: 1px solid #00ffcc;
    color: #00ffcc;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px transparent;
}

.pagination a:hover {
    background-color: #00ffcc;
    color: #111317;
    box-shadow: 0 0 15px #00ffcc;
}

.pagination a.active,
.pagination a[style*="font-weight:bold"] {
    background-color: #00ffcc;
    color: #111317;
    box-shadow: 0 0 15px #00ffcc;
    font-weight: bold;
}




/* === ALERTS === */
.success-msg {
color: #00ff80;
    font-weight: bold;
    text-align: center;
}

.error-msg {
color: #ff6666;
    text-align: center;
    font-weight: bold;
}

.no-links {
text-align: center;
    color: #888;
}


/* === SWEETALERT === */
/* Custom SweetAlert2 Overrides */
/* Glow modal box */
.swal2-container {
    position: fixed !important;
    z-index: 10000 !important;
}

.sci-swal-popup {
    width: 600px !important; /* Default SweetAlert2 is ~32rem */
    max-width: 90vw;
    background: #111;
    border: 1px solid #00ffcc;
    box-shadow: 0 0 20px #00ffcc66;
    border-radius: 12px;
    padding: 20px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
    box-sizing: border-box;
}

.swal2-popup {
padding: 1.5rem !important;
    overflow-x: hidden !important;
}

/* SweetAlert2 Sci-Fi Style */
.swal-sci-popup {
border: 2px solid #00ffc3;
    box-shadow: 0 0 25px #00ffc366;
    border-radius: 12px;
}

/* Shared sci-fi modal styling */
.swal-sci-popup {
border: 2px solid #00ffc3;
    box-shadow: 0 0 20px #00ffc3aa;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    color: #ccc;
}


/* === BACKGROUND-EFFECTS === */
/* Create the overlay with a larger spotlight effect */
.main-page-overlay {
position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  --mouse-x: -1000px; /* Initial position outside viewport */
  --mouse-y: -1000px;
  background: radial-gradient(
    circle at var(--mouse-x) var(--mouse-y),
    transparent 100px, /* Larger transparent area */
    black 150px /* Adjusted transition to black */
  );
  pointer-events: none; /* Allows mouse events to pass through */
  z-index: 2;
}


/* === MISC === */
footer {
background: #0b0c10;
    color: #c5c6c7;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    box-shadow: 0 0 15px #00ffc6;
    padding: 10px; 
    text-align: center;
}

header {
background: #0b0c10;
    color: #c5c6c7;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    box-shadow: 0 0 15px #00ffc6;
    padding: 10px; 
    text-align: center;
}

.mpr-header {
display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
}

.user-info {
color: #aaa;
    font-size: 14px;
}

.mpr-form {
width: 85%;
    max-width: 700px;
    margin: 0 auto 40px auto;
    padding: 20px;
    background: #111317;
    border-radius: 10px;
    box-shadow: 0 0 15px #00ffc6;
}

.swal-sci-title {
font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff99;
}

.swal-sci-text {
font-family: 'Orbitron', sans-serif;
    color: #ccc;
    font-size: 16px;
    display: block;
    margin-top: 8px;
}

.swal-sci-title {
color: #00ffff;
    font-size: 22px;
    font-weight: 600;
    text-shadow: 0 0 6px #00ffff88;
}

.swal-sci-title.warning {
color: #ffae00;
    text-shadow: 0 0 8px #ffaa0055;
}

.swal-sci-title.error {
color: #ff4d4d;
    text-shadow: 0 0 8px #ff4d4daa;
}

.swal-sci-text {
display: block;
    font-size: 16px;
    margin-top: 6px;
    color: #ccc;
}

.swal-sci-icon {
font-size: 36px;
    font-weight: bold;
    color: #ffae00;
    margin-bottom: 10px;
}

/* Sticky footer appearance */
footer {
text-align: center;
    padding: 10px 0;
    border-top: 1px solid #0ff;
    background-color: #111;
    color: #aaa;
    font-size: 0.9em;
}






