/******************default*******************/
*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
  }

html {
    font-size: 100%;
    font-family: "Open Sans", sans-serif;
    -webkit-text-size-adjust: 100%;
}

body {

}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 20px;
}
/******************Layouts*******************/
#main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main-container > footer{
    margin-top: auto;
}

#title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 600px;
    margin: 0 auto;
    padding: 10px 20px;
}

#pricing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 700px;
    margin: 0 auto;
    padding: 10px 20px;
    border-bottom: 1px solid #d5d5d5;
    background-color: #aaf9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 400px;
    height: 600px;
    margin: 0 auto;
    padding: 10px 20px;
}

.slogan {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 500px;
    max-width: 500px;
    margin: 0 auto;
}

.slogan h1 {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 20px;
    text-align: center;
}
.slogan h4 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.login-div, .signup-div, .reset-div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 500px;
    height: 300px;
    max-width: 500px;
    max-height: 300px;
    margin: 0 auto;
    padding: 10px 20px;
}

.reset-div {
    height: 250px;
}

.pass-signup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}
/* ###################### HEADER ###################### */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 10px 20px;
    border-bottom: 1px solid #d5d5d5;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-right {
    display: flex;
    align-items: center;
}

.navbar-right {
    display: flex;
    align-items: center;
}

/* Logo styling */
.navbar-logo {
    display: flex;
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    align-items: center;
}

.navbar-logo:hover {
    color: #007bff;
}

/* Tab Styling */
.tab {
    color: black;
    text-decoration: none;
    padding: 10px 20px;
    position: relative; /* Required for pseudo-elements */
    transition: box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
}

/* Hover Effect with Shadow */
.tab:hover::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 10%;
    width: 80%;
    height: 3px;
    background-color: #007bff;
    border-radius: 2px;
}

/* Optional: Subtle Underline for Active Tab */
.tab.active::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 10%;
    width: 80%;
    height: 3px;
    background-color: #007bff;
    border-radius: 2px;
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown toggle button */
.dropdown-toggle {
    padding: 8px 15px;
    font-size: 1em;
    color: #333;
    background-color: transparent;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dropdown-toggle:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

/* Dropdown menu */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 150px;
    margin-top: 5px;
    overflow: hidden; /* To handle rounded corners */
}

/* Show dropdown menu */
.dropdown-menu.show {
    display: block;
}

/* Dropdown menu item */
.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 15px;
    font-size: 0.95em;
    color: #333;
    background-color: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

/* Specific styling for logout button */
.logout-btn {
    color: #dc3545;
}

.logout-btn:hover {
    background-color: #f8d7da;
    color: #a71d2a;
}

/* Arrow styling */
.dropdown-arrow {
    font-size: 0.8em;
    color: #555;
    transition: transform 0.3s ease;
}

/* Rotate arrow when dropdown is active */
.dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}


/* ###################### MAIN ###################### */
.hostnames-container {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

/* Header styling */
.hostnames-container h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

/* Table styling */
.hostnames-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

/* Table header styling */
.hostnames-table thead th {
    background-color: #f4f4f4;
    font-weight: bold;
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #ddd;
    color: #555;
}

/* Table body styling */
.hostnames-table tbody td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    color: #333;
    text-align: left;
}

/* Row hover effect */
.hostnames-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Button styles */
.btn {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 2px;
}

.modify-btn {
    background-color: #5cb85c;
    color: white;
    border: none;
    transition: background-color 0.3s;
}

.modify-btn:hover {
    background-color: #4cae4c;
}

/* Delete button */
.delete-btn {
    background-color: #d9534f;
    color: white;
    border: none;
    transition: background-color 0.3s;
}

.delete-btn:hover {
    background-color: #c9302c;
}

.login-btn, .signup-btn, .reset-btn {
    background-color: #007bff; /* Primary blue */
    color: white;
    font-size: 16px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-btn:hover {
    background-color: #0056b3; /* Darker blue */
}

.login-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* ###################### Input Fields ###################### */
input {
    width: 100%;
    max-width: 500px; /* Adjust width as needed */
    padding: 8px 12px;
    margin: 0 auto;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus {
    border-color: #007bff; /* Highlight color */
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

input::placeholder {
    color: #aaa;
    font-style: italic;
}

input:disabled {
    background-color: #f2f2f2;
    cursor: not-allowed;
}

.input-error-field {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.field-error {
    color: red;
    font-size: 0.6em;
}

/* ###################### DIALOG ###################### */
/* Modal backdrop */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;

    /* Hidden by default */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  /* Show modal when .fade.in is added */
  .modal.fade {
    visibility: visible;
    opacity: 1;
  }

  /* Modal dialog box */
  .modal-dialog {
    background: white;
    border-radius: 8px;
    padding: 20px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: scale(0.9); /* Hidden by default */
    transition: transform 0.3s ease;
  }

  /* Dialog grows slightly when modal is shown */
  .modal.fade .modal-dialog {
    transform: scale(1);
  }

  .modal-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
  }

  .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
  }

  .modal-body {
    padding: 1rem 0;
    max-height: 60vh;
    overflow-y: auto;
  }

  /* Optional form field styles */
.field-div {
    margin-bottom: 1rem;
  }

  .field-div label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
  }

  .field-div input,
  .field-div select,
  .field-div textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

  .field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
  }

  .modal-footer {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
  }

  /* Buttons inside the footer */
  .modal-footer button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
  }

  .modal-footer button[type="button"] {
    background-color: #e0e0e0;
    color: #333;
  }

  .modal-footer button[type="submit"] {
    background-color: #5cb85c;
    color: white;
  }

  .modal-footer button:hover {
    opacity: 0.9;
  }
/* ###################### FOOTER ###################### */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 10px 20px;
    border-top: 1px solid #d5d5d5;
    background-color: #f8f9fa;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}


/* ###################### RESPONSIVE ###################### */
/* Responsive design */
@media (max-width: 768px) {
    .hostnames-container h1 {
        font-size: 1.5rem;
    }

    .hostnames-table {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.8rem;
    }
}