/* Common styles for all pages */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Serif:ital,opsz,wght@0,8..144,100..900;1,8..144,100..900&display=swap');

body {
     font-family: "Roboto Serif", serif;
    padding: 0;
}

/* Container styles */
.Xcontainer {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.login-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Headings */
h1, h2, h3, h4, h5, h6 { font-family: "Playfair Display", serif;}

h1 {
  color: #d80208;
  font-weight:800;
  margin-bottom: 10px;
  font-size:2.0rem;
}

h2 {
  text-align: left;
  color: #0f76b1;
  font-weight:700;
	 
}

h3 {
  color: #c85100;
  font-weight:600;
}

h4 {
  color: #266a91;
  font-weight:600; 
}

/* Form elements */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.required:after {
    content: "*";
    color: red;
}

.input-field,
input[type="text"],
input[type="password"],
input[type="email"],
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

    input[type="password"],
    input[type="text"].password-field {
        font-family: monospace;
    }

input[type="submit"],
.btn-submit,
button:not(.btn) {
    width: 100%;
    padding: 10px 15px;
    background-color: #337ab7;
    border: none;
    border-radius: 3px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

/* Bootstrap buttons should keep their own styling */
.btn {
    width: auto; /* Override the 100% width */
    margin-right: 10px; /* Add spacing between buttons */
}

input[type="submit"]:hover,
.btn-submit:hover,
button:hover {
    background-color: #286090;
}

/* Error and validation messages */
.error,
.error-message,
.client-error,
.validation-error {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
}

.error {
    color: #f00;
    background-color: #fee;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 3px;
    border: 1px solid #f88;
}

.error-input {
    border: 1px solid red;
}

.error-summary {
    color: red;
    font-weight: bold;
    padding: 10px;
    background-color: #fff0f0;
    border: 1px solid #cc9999;
    margin-bottom: 15px;
}

/* Success messages */
.success-message {
    color: green;
    font-weight: bold;
    padding: 10px;
    background-color: #f0fff0;
    border: 1px solid #99cc99;
    margin-bottom: 15px;
}

.success-panel {
    display: none;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.success-panel p {
        margin: 8px 0;
}

.success-panel strong {
        font-weight: bold;
}

/* Password requirements */
.requirements {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

.valid {
    color: green;
}

.invalid {
    color: red;
}

/* Table styles */
.url-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.url-table th {
    background-color: #f2f2f2;
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
}

.url-table td {
    padding: 8px;
    border: 1px solid #ddd;
}

.url-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.url-table tbody tr:hover {
    background-color: #e6f2ff;
    transition: background-color 0.2s ease;
    cursor: default;
}

/* Action icons */
.action-icons {
    /*display: flex;*/
    gap: 10px;
}

.action-icon {
    cursor: pointer;
    font-size: 1.2rem;
}

.action-icon.delete {
    color: #dc3545;
}


.action-icon.report {
    color: #198754;
}

/* URL status */
#shortUrlStatus {
    padding: 4px 0;
    min-height: 20px;
}

#shortUrlStatus.checking {
    color: #888;
}

#shortUrlStatus.available span {
    color: green;
}

#shortUrlStatus.unavailable span {
    color: red;
}

/* Panel styles */
.panel {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.panel-heading {
    background-color: #337ab7;
    color: white;
    padding: 10px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.panel-body {
    padding: 15px;
}

/* Detail tables */
.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table th,
.details-table td {
    padding: 2px;
    border: 1px solid #ddd;
}

.details-table th {
    
    background-color: #f5f5f5;
    text-align: left;
}

/* Message styles */
.no-data-message {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.no-data {
    margin-top: 20px;
    color: #777;
    font-style: italic;
}

/* URL link styling */
.mono-text {
  word-break: break-all;
  font-family: monospace;
}

/* Alternate row styling */
.alternating-row {
    background-color: #f9f9f9;
}

/* Footer styling */
.footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #777;
}

/* Button container for spacing */
.button-container {
    margin-top: 15px;
}

/* ===== LOGIN PAGE SPECIFIC STYLES ===== */
/* Override margin for login page */
.vh-100 .container {
    max-width: 1200px; /* Wider container for login page */
}

/* Login page background */
.gradient-custom {
    background: url(/i/bg-login.jpg) top center no-repeat;
    /* background-size: cover; */
}

/* Login card background */
.login-bg {
    background: rgba(255, 255, 255, 1);
}

/* Sign Up button gradient */
.bg-dark {
    background: rgb(0,120,255);
    background: linear-gradient(9deg, rgba(0,120,255,1) 0%, rgba(255,0,0,1) 100%);
    background: -webkit-linear-gradient(9deg, rgba(0,120,255,1) 0%, rgba(255,0,0,1) 100%);
}

/* Button container on login page */
.top-link {
    float: left;
    font-size: 90%;
    position: relative;
    bottom: -20px;
}

/* Login panel title */
.panel-title {
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    text-align: center;
}

h2.panel-title {
    margin-bottom: 0 !important
}
.d-none {
    display: none;
}

.custom-nav .navbar-brand { margin-left:15px;}
.custom-nav .nav-item a { color:#fff; font-weight:600;}

.tdcolor td { height:60px;}

.tdcolor td:nth-child(3) { width:200px !important; white-space: nowrap; overflow:hidden}
.tdcolor td:nth-child(4) { width:200px !important; white-space: nowrap;}
.tdcolor th:nth-child(3) { width:200px !important; white-space: nowrap; overflow:hidden}
.tdcolor th:nth-child(4) { width:200px !important; white-space: nowrap;}

td.scrollable { overflow-x: auto; display:flex;}

.bg-primary { background-color:#0074c8 !important;}
.bg-red { background-color:#d8262f !important;}

.flink ul { margin:0; padding:0;}
.flink ul li { list-style:none; float:left; margin-right:10px;  color:#fff; font-size:12px;}
.flink ul li a { text-decoration:none !important; color:#fff; font-size:14px}
.fpad { padding:12px;}

.footer-top .text-muted { color:#fff !important;}
#help {font-size:1.2rem; }
#help .display-4 {font-size: 3rem !important;}
#help .display-5 {font-size: 2rem !important;}
#help input[type="submit"], .btn-submit, button:not(.btn) { font-size:1.5rem;}
#help h2 {text-align: left;  font-size:1.8rem; margin-bottom:25px;}
h2.accordion-header { margin-bottom:0 !important;}
#help h3 { margin-bottom:25px; font-size:1.5rem;}
#help h1 { margin:20px 0;}

#contactForm { font-family: "Roboto Serif", serif !important;}

.center-logo img { margin:5px auto;}
.app { text-align:right;}
.app img:nth-child(1) { margin-right:10px;}

.py-7 {
  padding-top: 4rem;
  padding-bottom: 6.5rem;
}

.my-login {
  margin-top: 1rem !important;
  margin-bottom: 3rem !important;
}

@media screen and (max-width: 768px) {
	
	.text-muted { text-align:left!important;}
	.app img { float:left; margin:15px 0;}
	.app img:nth-child(1) { margin-right:5px;}
	.flink ul li { margin-right:4px; font-size:11px; margin-bottom:10px;}
	.py-7 { padding-bottom: 5rem !important;}
}
.navbar-brand i {margin-right: 8px;}

.logo-left h1 { color: #fff !important; padding-left:5px; margin:5px 0;}
.logo-right { float: right;padding-top:15px; font-size: 16px;}
.logo-right ul { float: right;list-style-type: none; margin: 0;  padding: 0;}
.logo-right ul li { float: left;}
.logo-right ul li a { color:#fff; text-decoration:none; margin-right:10px; }

/* ===== FLOATING LABEL FORMS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

.form-floating > label {
    font-size: 0.82rem;
    color: #6c757d;
    font-family: "Inter", sans-serif;
    letter-spacing: 0.01em;
}

/* Help icon beside field */
.field-help {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    margin-bottom: 2px;
    vertical-align: middle;
}
.field-help .help-icon {
    color: #6c757d;
    font-size: 0.9rem;
    cursor: help;
}
.field-help .help-icon:hover { color: #0d6efd; }

/* Inline password requirement pills */
.password-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 5px 0 8px;
    padding: 0;
    list-style: none;
}
.password-requirements li {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
    background: #e9ecef;
    color: #6c757d;
    border: 1px solid #dee2e6;
    transition: background 0.2s, color 0.2s;
}
.password-requirements li.valid {
    background: #d1e7dd;
    color: #0a3622;
    border-color: #a3cfbb;
}
.password-requirements li.invalid {
    background: #f8d7da;
    color: #58151c;
    border-color: #f1aeb5;
}

/* Validation error text below fields */
.server-error { color: red; font-size: 0.85em; margin-top: 3px; }
.client-error { color: red; font-size: 0.85em; margin-top: 3px; display: none; }

/* Short URL column in dashboard table */
.short-url-cell {
    white-space: nowrap;
}
.short-url-text {
    font-family: monospace;
    font-size: 0.82rem;
}
.copy-short-url-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    padding: 0 0 0 5px;
    font-size: 0.85rem;
    line-height: 1;
    vertical-align: middle;
}
.copy-short-url-btn:hover { color: #0d6efd; }

/* Notebook URL display in success panel */
.nb-url-block {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.nb-url-code {
    font-size: 0.95rem;
    background: #f0f4f8;
    border: 1px solid #cdd8e3;
    border-radius: 4px;
    padding: 4px 8px;
    word-break: break-all;
    color: #0a3622;
}
.copy-btn { line-height: 1; padding: 4px 8px; }