
/* Add these to your existing styles */
body {
    background-color: #111827;
    color: white;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
        margin: 0
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.025em;
}
/* Add these styles if they're not already present */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex: 1;
    font-weight: 500;
}

.nav-links li {
    margin: 0 1rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.nav-links a:hover {
    text-decoration: underline;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-email {
    color: white;
}

.logout-btn {
    background: none;
    border: 1px solid white;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.login-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid white;
    border-radius: 4px;
}

.login-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Admin Dashboard Styles */
.admin-dashboard {
    padding: 10px 0;
    max-width: 100%;
    margin: 0 ;
}

.admin-dashboard {
    display: flex; /* Use flexbox for main dashboard layout */
    min-height: calc(100vh - 80px); /* Adjust based on your nav height */
}

.dashboard-sidebar {
    width: 250px; /* Fixed width for the sidebar */
    background-color: #1F2937; /* Darker background for distinction */
    padding: 1.5rem 1rem;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    flex-shrink: 0; /* Prevent sidebar from shrinking */
}

.dashboard-sidebar h3 {
    color: #60A5FA; /* Highlight color for headings */
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Adjust main content area to take remaining space */
.tab-content {
    flex-grow: 1;
    padding: 2rem;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: #fff;
    margin: 0;
}

.dashboard-tabs {
    display: flex;
    flex-direction: column; /* Stack tabs vertically */
    margin-top: 1.5rem;
}

.tab-link {
    padding: 0.75rem 1rem;
    color: #D1D5DB; /* Lighter text for tabs */
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 0.5rem; /* Space between tab links */
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.tab-link:hover {
    background-color: #374151; /* Slightly lighter background on hover */
    color: #fff;
}

.tab-link.active {
    background-color: #3B82F6; /* Primary color for active tab */
    color: white;
    font-weight: bold;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.action-buttons {
    margin-bottom: 2rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 1rem;
}

.btn.primary {
    background: #000;
    color: #fff;
    border-color: #000;
}

.btn:hover {
    opacity: 0.8;
}

/* Lists styling */
.websites-list,
.email-list,
.users-list,
.domains-list,
.nginx-status {
    background: #fff;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2.5rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #60A5FA;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.025em;
}

.hero-section p {
    font-size: 1.125rem;
    color: #D1D5DB;
    margin-top: 1rem;
}

.cta-button {
    margin-top: 1.5rem;
    background-color: #3B82F6;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #2563EB;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2.5rem;
}

.pricing-card {
    background-color: #1F2937;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.pricing-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #60A5FA;
    font-family: 'Poppins', sans-serif;
}

.plan-description {
    color: #D1D5DB;
    margin-top: 0.5rem;
}

.plan-price {
    font-size: 1.875rem;
    font-weight: bold;
    margin-top: 1rem;
    color: #34D399;
}

.plan-button {
    display: block;
    margin-top: 1.5rem;
    background-color: #10B981;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s;
}

.plan-button:hover {
    background-color: #059669;
}

.main-footer {
    background: #1F2937;
    color: white;
    padding: 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Navigation Styles */
.nav.main-nav {
    background-color: #000;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Pricing Table Styles */
.table h1 {
    text-align: center;
    color: white;
    margin: 2rem 0;
}

.price {
    font-size: 3em;
    color: #434343;
    display: block;
    margin: 1rem 0;
}

.tableHeader {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    background: #ddd;
}

.tableRow {
    display: flex;
    flex-direction: row;
    text-align: center;
    justify-content: space-evenly;
    background: linear-gradient(356deg, 
        rgba(49,49,49,1) 0%, 
        rgba(238,238,238,1) 0%, 
        rgba(237,237,237,1) 0%, 
        rgba(163,173,176,1) 0%, 
        rgba(115,184,218,1) 27%, 
        rgba(180,180,180,1) 100%, 
        rgba(136,147,150,1) 100%, 
        rgba(86,135,217,1) 100%, 
        rgba(189,226,236,1) 100%
    );
    padding: 2rem;
    margin: 0 2rem;
    border-radius: 12px;
}

.col {
    margin: 20px;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #ddddddd1;
    backdrop-filter: blur(8px);
    flex: 1;
    max-width: 400px;
}

.button {
    background: #a38bcede;
    color: #fff;
    font-family: inherit;
    border: none;
    border-radius: 8px;
    padding: 1em;
    margin: 2rem auto 0;
    display: block;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #795ae2;
}

.table h4 {
    color: #795ae2;
    font-size: 42px;
    margin: 0 0 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.col p {
    margin: 0.5rem 0;
    color: #333;
}

@media (max-width: 769px) {
    .button {
        background-color: #795ae2;
    }
    
    .table {
        overflow: hidden;
    }
    
    .price {
        font-size: 23px;
    }
    
    .tableRow {
        flex-flow: column;
        align-items: center;
        margin: 0 1rem;
    }
    
    .col {
        width: 100%;
        margin: 10px 0;
    }
}

/* Login page styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px); /* Adjust based on your nav height */
    padding: 2rem;
}

.login-box {
    background: #1F2937;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    color: #60A5FA;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.login-form .form-group {
    margin-bottom: 1rem;
}

.login-form label {
    display: block;
    color: #D1D5DB;
    margin-bottom: 0.5rem;
}

.login-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #4B5563;
    border-radius: 4px;
    background: #374151;
    color: white;
}

.login-form input:focus {
    outline: none;
    border-color: #60A5FA;
}

.login-button {
    width: 100%;
    padding: 0.75rem;
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
}

.login-button:hover {
    background: #2563EB;
}

.error-message {
    color: #EF4444;
    margin-top: 0.5rem;
    text-align: center;
}

/* Contact page styles */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.contact-box {
    background: #1F2937;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-box h1 {
    color: #60A5FA;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    color: #D1D5DB;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #4B5563;
    border-radius: 4px;
    background: #374151;
    color: white;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #60A5FA;
}

.submit-button {
    width: 100%;
    padding: 0.75rem;
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background: #2563EB;
}

.contact-info {
    background: #1F2937;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    color: #60A5FA;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item h3 {
    color: #D1D5DB;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-item p {
    color: #9CA3AF;
}

.success-message {
    background: #059669;
    color: white;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Add to your existing styles */
.records-table, .mailbox-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    color:#444;
}

.records-table th,
.records-table td,
.mailbox-table th,
.mailbox-table td {
    padding: 0.75rem;
    text-align: left;
    color:#444;
    border-bottom: 1px solid #ddd;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
        background: #1f2937;
    color: #ccc;
       margin: 5px 0;
    padding: 2rem;
    border-radius: 8px;
} 
.modal-content label,.modal-content input{
        display: block;

}
.modal-content input{
 border-radius: 3px;
    line-height: 25px;
    border: 1px solid #837d7d;
}

.modal-content label{
    margin-bottom:5px;
}
.websites-list p,.users-list p,.nginx-status p{
    color:#444;
}

/* Add to your existing styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem;
    border-radius: 4px;
    color: white;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background-color: #059669;
}

.notification.error {
    background-color: #DC2626;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.website-item, .user-item {
    background: #1F2937;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.website-actions, .user-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.website-actions button, .user-actions button {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background: #3B82F6;
    color: white;
}

.website-actions button:hover, .user-actions button:hover {
    background: #2563EB;
}

.search-box {
    margin-bottom: 1rem;
}

.search-box input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.users-list-modal {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.user-item-selectable {
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.user-item-selectable:hover {
    background: #f5f5f5;
}

.selected-user-info {
    background: #1F2937;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.selected-user-info h3 {
    color: #60A5FA;
    margin-bottom: 0.5rem;
    margin:3px;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.domain-card {
    background: #1F2937;
    padding: 1rem;
    border-radius: 4px;
    color: white;
}
.domain-card button{

    border: none;
    color: #60A5FA;
    background: transparent;
    font-weight: 600;
    text-decoration: underline;
}
.domain-card button:hover{

    border: 1px solid #333;
    color: #60A5FA;
    background: transparent;
    font-weight: 600;
    text-decoration: underline;
}
.domain-card h3 {
    color: #60A5FA;
    margin-bottom: 0.5rem;
}

.domain-records {
    margin-top: 1rem;
}

.record-item {
    padding: 0.5rem;
    border-bottom: 1px solid #374151;
}

.zone-records-table {
  
    grid-template-columns: 1fr 0.5fr 2fr 1fr; /* Adjust column ratios as needed */
    gap: 0.5rem 1rem;
    align-items: center;
    color: #ddd; /* Darker text for readability */
    text-align: left;
    margin-top: 1.5rem;
}

.zone-records-header, .record-item {
    display:flex ;
}

.zone-records-header > div {
    font-weight: bold;
  color: #ddd;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
    width: 20%;
}

.record-item > div {
    padding: 0.75rem 0;
        width:20%;

    border-bottom: 1px solid #f0f0f0;
    word-break: break-all; /* Prevent long values from overflowing */
}

.record-value {
    font-family: monospace;
    font-size: 0.9em;
    color: #ccc;
}


.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.status-item {
    background: #1F2937;
    padding: 1rem;
    border-radius: 4px;
    color: white;
    text-align: center;
}

.status-item h3 {
    color: #60A5FA;
    margin-bottom: 0.5rem;
}

.sites-list {
    background: #1F2937;
    padding: 1rem;
    border-radius: 4px;
    color: white;
}

.sites-list h3 {
    color: #60A5FA;
    margin-bottom: 1rem;
}

.sites-list ul {
    list-style: none;
    padding: 0;
}

.sites-list li {
    padding: 0.5rem;
    border-bottom: 1px solid #374151;
}

.domain-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.record-actions {
    display: flex;
    gap: 0.25rem;
}

.btn.small {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn.danger {
    background: #DC2626;
}

.btn.danger:hover {
    background: #B91C1C;
}

.config-editors {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.config-section {
    background: #1F2937;
    padding: 1rem;
    border-radius: 4px;
}

.config-editor {
    width: 100%;
    min-height: 300px;
    font-family: monospace;
    background: #111827;
    color: #D1D5DB;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border: 1px solid #374151;
    border-radius: 4px;
}

.log-viewer {
    background: #111827;
    color: #D1D5DB;
    padding: 0.5rem;
    border-radius: 4px;
    max-height: 500px;
    overflow-y: auto;
}

.log-viewer pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: monospace;
}

/* Invoice Styles */
.invoice-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo-section img {
    max-width: 200px;
    max-height: 100px;
    margin: 1rem 0;
    object-fit: contain;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
}

.invoice-editor {
    background: #1F2937;
    padding: 2rem;
    border-radius: 8px;
}

.invoice-form {
    display: grid;
    gap: 1.5rem;
}

.items-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.items-section th,
.items-section td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #374151;
}

.totals-section {
    margin-top: 2rem;
    border-top: 2px solid #374151;
    padding-top: 1rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.total-row:last-child {
    font-weight: bold;
    font-size: 1.2em;
    border-top: 1px solid #374151;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

#itemsTable input {
    background: #111827;
    border: 1px solid #374151;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    width: 100%;
}

.invoice-preview {
    background: white;
    color: black;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

/* Error Page Styles */
.error-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #111827;
}

.error-content {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
    background: #1F2937;
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.error-content h1 {
    font-size: 6rem;
    color: #60A5FA;
    margin: 0;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.error-content h2 {
    font-size: 2rem;
    margin: 1rem 0;
}

.error-content p {
    color: #D1D5DB;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Client Management Styles */
.clients-list {
    background: #1F2937;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

#clientsTable {
    width: 100%;
    border-collapse: collapse;
}

#clientsTable th,
#clientsTable td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #374151;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Modal Styles */
.modal {
    display: none;
  position: relative;
    left: 0;
    width: 100%;
    height: auto;
    background: transparent;


}
.modalOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9;
}
#addDNSRecordForm{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#addDNSRecordForm .row{
display:flex;
flex-direction:row;
gap: 10px;
}
#addDNSRecordForm input, #addDNSRecordForm select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #111827;
    color: white;
    height: max-content;
}
.zone-records-header{
        display: flex;
    gap: 12px;
}


.modal-content .form-group{
        padding: 10px 0px 20px;
}
#zone-details-modal{
        padding: 10%;
}
.close{
    display: none;
        position: absolute;
    right: 5px;
    top: 2px;
}
/* Make sure this is higher than other modals */
#editDNSZoneModal {
    z-index: 99990000;
    position: fixed;
    max-height: 100px;
    top: 20%;
    background: #3863ff29;
}
#editDNSRecordModal {
    z-index: 9999999
}