/*
 * YOURLS White Label Custom Stylesheet
 * Version 2.0 - Inspired by the "Smul" modern design
 */

/* 2. Define the Color Palette using CSS Variables */
@import "./fonts.css";
:root {
    --brand-blue: #00618F;
    --brand-darkblue: #0056b3;
    --brand-gray: #323637;
/*    --brand-lightgray: #B7B4B4; */
    --brand-lightgray: #F6F3EE;
    --brand-text-dark: rgb(243, 239, 233);
    --brand-white: #ffffff;
    --brand-border: #666666;
    --brand-error: red;
}


/* 3. General Body & Typography Styles */
body {
    font-family: 'Satoshi', sans-serif;
    color: var(--brand-text-dark);
    background-color: var(--brand-lightgray); /* Lighter gray background */
    padding: 0;
}

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
a:hover {
    color: var(--brand-darkblue);
}

/* 4. Header & Navigation */
header {
    background: white;
    padding: 20px;
    margin: -56px -56px 56px -56px;
    padding: 0 56px;
    height: 74px;
    color: rgb(13, 14, 14);
    display: flex;
    flex-direction: row;
    align-items: center;
    border-bottom: 2px solid #E1E1E1;
}

header div {
    font-family: Satoshi;
}

header > h1 {
    float: none;
    height: auto;
    font-family: Satoshi;
    margin: 0 auto;
}

header  > a > img {
   /* float: left; */
    max-height: 48px;
};

#admin_menu a, #admin_menu a:link {
    font-weight: 500;
    color: var(--brand-text-dark);
    transition: all 0.2s ease-in-out;
}

#admin_menu a:hover {
    background-color: var(--brand-lightgray);
    color: var(--brand-blue);
}

#admin_menu_logout_link {
    color: var(--brand-gray);
}

/* 5. Login Page Specific Styles */
body.login {
    background-color: var(--brand-lightgray);
}

body.login #login {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 40px;
}

/* 6. Buttons & Inputs */
input.text, input[type=text], input[type=password] {
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 1.1em;
    border: 1px solid var(--brand-border);
    box-shadow: none;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
input.text:focus, input[type=text]:focus, input[type=password]:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}
#submit {
    border-radius: 0 50px 50px 0; /* Pill shape */
    font-size: 1.1em;
    margin-left: 0;
}
#url {
    border-radius: 50px 0 0 50px;
    margin-right: 0;
    width: calc(100% - 250px);
}

#keyword {
    border-radius: 0 50px 50px 0; /* Pill shape */
    margin-left: 0;
    border-left: none;
}

input.button, input.submit, input[type="submit"], input[type="button"] {
    background-color: var(--brand-blue);
    margin: 10px;
    color: var(--brand-white);
    border-radius: 50px; /* Pill shape */
    padding: 10px 25px;
    font-weight: 600;
    font-size: 1em;
    transition: background-color 0.2s ease-in-out;
    border: none;
    cursor: pointer;
}

input.button:hover, input.submit:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background-color: var(--brand-darkblue);
    color: var(--brand-white);
}

.error {
    color:var(--brand-error);
    font-weight: 700 !important;
    line-height: 2em;
    margin:0px auto;
    
}
/* 7. Main "Add New URL" Form */
#new_url {
    background: var(--brand-white);
    padding: 25px;
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

#new_url_form #add-url {
    font-size: 1.2em;
    padding: 12px 20px;
}

/* 8. Main Admin Table */
#main_table {
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    overflow: hidden; /* To make border-radius apply to the table */
}

#main_table thead tr {
    background-color: var(--brand-lightgray);
}

#main_table th {
    font-weight: 600;
    color: var(--brand-text-dark);
}

#main_table th, #main_table td {
    padding: 15px;
    border-bottom: 1px solid var(--brand-border);
}

#main_table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05); /* Light blue on hover */
}

#main_table td.actions a.button {
    padding: 5px 12px;
    font-size: 0.9em;
    margin-right: 5px;
}

div.fw { 
    width: 100%; 
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

div.left-footer {
  background: white;
  grid-column: span 4 / span 4;
}	

div.right-footer {
  background: var(--brand-gray);
  grid-column: span 8 / span 8;
}	
/* 9. Footer */
#footer {
    color: var(--brand-text-dark);
    width: 100%;
    min-width: 150px;
/*    border-top: 30px solid white;
    border-bottom: 10px solid white; */
    padding: 56px;
    font-size: 1.1em;
    border-radius: 0;
    text-align: center;
    display: flex;
    flex-direction: row;
    margin: 0 auto;
    background-color: var(--brand-gray);
    justify-content: space-between;
/*    margin: 56px -56px -56px -56px; */
}

#wrap, #footer {
    max-width: 1400px;
}

#footer p, #footer a {
    padding: 0;
    border: 0px;
    border-radius: 0;
    background: inherit; 
    font-size: 16px;
}

#footer p {
    margin: 0;
}

#footer > p > a {
    background: none;
    padding: 0;
    color: white;
    text-decoration: underline;
}

#footer a:hover {
    font-weight: 600;
}

#login {
    margin: 0px auto 0px auto !important;
}

body.login #login {
    padding: 60px;
}

#wrap {
  background-color: #F3EFE9;
  margin-top: 40px;
  border-top:var(--brand-gray);
  border-bottom:var(--brand-gray);
  border-left:var(--brand-gray);
  border-right:var(--brand-gray);   
  border-radius: 0;
  padding: 56px;
}

#wrap h2, #wrap label {
  font-family: Satoshi;
}

#wrap, #wrap input, #wrap label, #footer, #wrap span, #footer a {
  font-family: "Open Sans";
}

#custom-admin-header {
    float: right !important;
}

Input.text, select, textarea {
    margin: 1px;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 1.1em;
    border: 1px solid var(--brand-border);
    box-shadow: none;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    color: var(--brand-text-dark);
    background-color: var(--brand-white);
}

#wrap > h3:nth-child(5) > img {
 width:15px;   
}

div.share {
width: fit-content ! Important;
padding: 10px;
    }

#filter_form {
 max-width: 90%;   
}

span.site {
  background-color: #EEEEEE;
  font-size: 1.1em;
  padding: 10px 0 10px 10px; 
  border-radius: 50px 0 0 50px;
  border: 1px solid var(--brand-lightgray)
}
