/* Base styles */
* {
    box-sizing: border-box;
}

body {
	height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    font-size: 14px;
}

#api-key-message {
    color: green;
    margin-top: 10px;
}

.modal-content-higher-top {
    margin: 2% auto !important; /* Override any other margin settings */
}

code {
    color: #e83e8c;
}

.success-message {
    color: green;
    /* Additional styling as needed */
}

.error-message {
    color: red;
    /* Additional styling as needed */
}

.main-container {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.admin-nav ul {
    list-style-type: none;
    padding: 0;
}

.admin-nav li {
    display: inline;
    margin-right: 10px;
}

.admin-nav a {
    text-decoration: none;
    color: #000;
    padding: 8px 10px;
	border-radius: 8px;
	background-color: #fff;
}

.admin-nav a.active {
    background-color: #009688;
    color: white;
}

.tab-content {
    margin-top: 20px;
}

/* Style for Admin Users Table */
.admin-users-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

/* Style for Admin Users Table */
.admin-users-table th,
.admin-users-table td {
    padding: 12px 15px;
    border: 1px solid #ddd; /* Light grey border */
    text-align: center; /* Center align text */
    font-size: 14px;
}

.admin-users-table th {
    background-color: #009688; /* Adjust to match your theme color */
    color: white;
    font-weight: bold;
}

.admin-users-table tr:nth-child(even) {
    background-color: #f2f2f2; /* Light grey for even rows */
}

.admin-users-table tr:hover {
    background-color: #e0e0e0; /* Slightly darker grey on hover */
}

.admin-users-table a {
    color: #009688;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.admin-users-table a:hover {
    background-color: #007d71; /* Darker shade of theme color */
    color: white;
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.header-container {
    max-width: 1200px; /* or your preferred max width */
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: inline-block;
    font-size: 24px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.logo img {
    max-width: 100px; /* Adjust the size of your logo */
}

.navigation {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between links */
}

.header-user-name {
    background-color: unset !important;
    padding: 0 !important;
}

.navigation a {
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    background-color: #009688; /* Theme color for buttons */
    border-radius: 5px; /* Rounded corners for buttons */
    transition: background-color 0.3s;
}

.navigation a:hover {
    background-color: #007d71; /* Darker shade on hover */
    text-decoration: none; /* No underline on hover */
}

footer {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.ip-lookup-container {
    text-align: center;
    background-color: #009688;
    padding: 20px;
    color: #fff;
}

.ip-address {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Card-like container for the form */
.login-container, .register-container {
    margin: 8% auto;
}

.form-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 340px; /* Adjust width as needed */
	margin: auto;
}

/* Input styles */
.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Button styles */
.btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
}

.green {
    background-color: #4CAF50;
    color: white;
}

.green:hover {
    background-color: #45a049;
}

.orange {
    background-color: #ff9800;
    color: white;
}

.orange:hover {
    background-color: #e68a00;
}

/* Link styles */
a.forgot-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #009688;
    text-decoration: none;
}

a.forgot-link:hover {
    text-decoration: underline;
}

/* Logo styles */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container img {
    max-width: 150px; /* Adjust as needed */
}

/* Style for reCAPTCHA */
.g-recaptcha {
    margin: 0 auto 20px auto;
    text-align: center;
}

/* Centering the form container */
.form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-bottom: 30px;
}

.form-container input[type="text"] {
    padding: 10px;
    margin-right: -4px;
    border: 0;
    border-right: none;
    font-size: 16px;
    outline: none;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.form-container input[type="submit"] {
    padding: 10px 20px;
    border: 0;
    background-color: #2a6864;
    color: white;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.form-container input[type="submit"]:hover {
    background-color: #007d71;
}

.ip-details {
    background-color: #fff;
    color: #333;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 80%;
    max-width: 600px;
    text-align: left;
}

.ip-details table {
    width: 100%;
    border-collapse: collapse;
}

.ip-details th,
.ip-details td {
    text-align: left;
    padding: 12px 16px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.ip-details th {
    background-color: #009688;
    color: #fff;
}

.ip-details td {
    background-color: #f0f0f0;
}

/* Add this at the top of your style.css file */
.packages-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Updated package card styling */
.package-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 19%;
}

.package-header {
    background-color: #009688;
    color: #fff;
    padding: 20px;
}

.package-title {
	font-size: 23px;
	font-weight: 600;
	margin-bottom: 10px;
}

.package-title-description {
	font-size: 14px;
	margin-bottom: 10px;
}

.package-pricing-container {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 10px;
}

.package-non-discount-pricing {
	margin-bottom: 20px;
}

.package-original-price {
    text-decoration: line-through;
	font-size: 20px;
}

.package-discounted-price, .package-price {
    font-weight: bold;
    font-size: 40px;
}

.currency-symbol {
	font-size: 20px;
	vertical-align: text-top;
	margin-right: 2px;
}

.package-duration {
	font-size: 24px;
	font-weight: 600;
}

.package-save {
    display: flex;
    align-items: center;
    gap: 5px;
}

.package-percentage {
    background-color: #ffd891;
    border-radius: 5px;
    padding: 2px 5px;
    font-size: 12px;
    color: #333;
}

.package-features-container {
    padding: 15px;
    background-color: #ffffff;
}

.package-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.package-item {
    margin-bottom: 15px;
}

.feature-enabled {
    color: green;
    margin-right: 5px;
}

.feature-disabled {
    color: grey;
    margin-right: 5px;
}

.package-action {
    padding: 15px;
    background-color: #f2f2f2;
    text-align: center;
}

.package-action button {
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 20px;
    border: none;
    background-color: #009688;
    color: white;
    font-size: 0.875em;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.package-action button:hover {
    background-color: #003a70;
}

/* Hover effect on the card */
.package-card:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-section {
    background-color: #f8f8f8;
    border: 1px solid #e8e8e8;
    padding: 20px;
    border-radius: 4px;
}

.payment-methods {
    display: flex;
    gap: 20px;
}

#paypalSettings {
    width: 50%;
}

#bankTransferSettings {
    width: 50%;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.settings-form input[type="submit"] {
    width: auto;
    padding: 10px 20px;
    background-color: #009688;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.settings-form input[type="submit"]:hover {
    background-color: #23958a;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 30%; /* Could be more or less, depending on screen size */
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
    border-radius: 5px; /* Rounded corners */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Modal Header */
.modal h3 {
    color: #333;
    margin-bottom: 20px;
}

.purchase-btn {
    background-color: #009688;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

.purchase-btn:hover {
    background-color: #23958a;
}

/* Modal Form */
.modal form {
    display: flex;
    flex-direction: column;
}

.modal form label {
    margin-bottom: 5px;
    color: #333;
}

.modal form input[type="number"],
.modal form select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.modal form input[type="submit"] {
    cursor: pointer;
    padding: 10px 20px;
    background-color: #007d71;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.modal form input[type="submit"]:hover {
    background-color: #23958a;
}

/* Subscription Title and Button Container */
.title-action-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Style for the Add Subscription Button */
.action-button {
    padding: 10px 20px;
    background-color: #009688; /* Adjust the color as per your theme */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.action-button:hover {
    background-color: #007d71; /* Darker shade on hover */
}

/* Style for Subscription Table */
.subscription-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.subscription-table th,
.subscription-table td {
    padding: 12px 15px;
    border: 1px solid #ddd; /* Light grey border */
    text-align: center; /* Center align text */
    font-size: 14px;
}

.subscription-table th {
    background-color: #009688; /* Adjust to match your theme color */
    color: white;
    font-weight: bold;
}

.subscription-table tr:nth-child(even) {
    background-color: #f2f2f2; /* Light grey for even rows */
}

.subscription-table tr:hover {
    background-color: #e0e0e0; /* Slightly darker grey on hover */
}

.vendor-dashboard {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
}

.api-usage-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.api-container {
    flex-grow: 1;
    min-width: 300px;
}

.usage-details-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.usage-box {
    background: #f9f9f9;
    border-left: 5px solid #009688;
    padding: 15px;
    border-radius: 4px;
    flex-basis: calc(50% - 10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.usage-title {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.usage-value {
    font-size: 1.5rem;
    color: #009688;
    font-weight: bold;
}

.daily-api-usage {
    flex-basis: 100%;
}

.daily-api-usage-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    text-align: left;
}

.daily-api-usage-table th,
.daily-api-usage-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.daily-api-usage-table th {
    background-color: #009688;
    color: #fff;
}

.daily-api-usage-table td {
    background-color: #f9f9f9;
}

@media (max-width: 600px) {

    .ip-details {
        width: 100%;
        padding: 10px;
        margin: 10px auto;
        box-shadow: none;
    }
  
    .package-card {
        width: 100%;
    }

	.form-box {
        width: 90%;
        padding: 20px;
    }

    .api-usage-container {
        flex-direction: column;
    }

    .usage-box {
        flex-basis: 100%;
    }

    .daily-api-usage {
        order: -1; /* Show daily usage on top on smaller screens */
    }

    .title-action-button {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-button {
        margin-top: 10px;
    }

    .admin-users-table, 
    .admin-users-table thead, 
    .admin-users-table tbody, 
    .admin-users-table th, 
    .admin-users-table td, 
    .admin-users-table tr { 
        display: block; 
    }

    .admin-users-table th { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .admin-users-table tr { 
        margin-bottom: 10px;
        border: 1px solid #ddd;
    }

    .admin-users-table td { 
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    .admin-users-table td:before { 
        position: absolute;
        top: 12px;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        text-align: left;
        font-weight: bold;
    }
    
    .navigation a {
        padding: 5px 10px;
    }
    
    .logo a {
        font-size: 20px;
    }
        .form-container input[type="submit"] {
        border-top: 2px solid #009688;
    }
}
