*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    display:flex;
    background:linear-gradient(to right,#0F0F0F,#181818,#111);
    color:white;
    height:100vh;
}

/* SIDEBAR */

.sidebar{
    width:240px;
    background:#1b1b1b;
    padding:20px;
}

.sidebar h1{
    color:#7b61ff;
    margin-bottom:40px;
    font-size:28px;
}

.sidebar ul{
    list-style:none;
}

.sidebar li{
    padding:15px 0;
    cursor:pointer;
    color:#ccc;
    transition:0.3s;
}

.sidebar li:hover{
    color:white;
    transform:translateX(5px);
}

/* MAIN CONTENT */

.main{
    flex:1;
    padding:80px;
}

/* TOPBAR */

.topbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.topbar input{
    width:300px;
    padding:12px;
    border:none;
    border-radius:10px;
    background:#2b2b2b;
    color:white;
    outline:none;
}


 CARDS 
 put back later
 
 
.cards{
    margin-left:40px;
    margin-top:20;

      

}


.main-container-grid {
    display: grid;
    margin-top: 40px;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    grid-auto-rows: auto;
    gap: 20px;
}



    

.card{
    background:#1f1f1f;
    padding:20px;
    border-radius:15px;
    transition:0.3s;
    max-width:175px;
    min-height:150px;

}

.recycle-card{
    max-width:900px;
    width:100%;
}



.card:hover{
    transform:scale(1.03);
    box-shadow:0 0 20px rgba(123,97,255,0.5);
}

.card h2{
    margin-bottom:20px;
}
    

/* BUTTONS */
button{
    padding:5px 10px;
    border:none;
    border-radius:10px;
    background:#7b61ff;
    color:white;
    cursor:pointer;
    transition:0.3s;
}

button:hover{
    background:#9b87ff;
    transform:scale(1.05);
    box-shadow: 0 0 15px rgba(123,97,255,0.6,);
}

.deleteBtn :active{
    background: crimson;
}
/* STATS */

.stats{
    display: flex;
    gap:55px;
    flex-wrap: wrap;
    align-items:flex-start;
}

.stat-box{
    flex:1;
    background:rgba(255,255,255,0.05);
    padding:24px;
    border-radius:15px;
    text-align:center;
    height:90px;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    width: 180px;
}

.stat-box h2{
    color:#7b61ff;
    font-size:32px;
}

.stat-box p{
    color:#aaa;
}

.stats-container {

    display: flex;

    gap: 40px;

    align-items: center;

}

/* STATUS DOT */




    .status {

        width: 12px;
    
        height: 12px;
    
        border-radius: 50%;
    
        position: absolute;
    
        top: 15px;
    
        right: 15px;
    
        z-index: 10;
    
    }


.online {

    background: limegreen;

    box-shadow:
    0 0 10px limegreen;

}

.offline{
    background:red;
    box-shadow:0 0 10px red;
}

.card p{
    color:#aaa;
    margin-bottom:20px;
}
/* SIDEBAR ICONS */

.sidebar li{
    display:flex;
    align-items:center;
    gap:12px;
}

.sidebar i{
    color:#7b61ff;
    width:20px;
}
/* PAGE SECTIONS */

.section{
 display:block;

    width: 80%;

    max-width: 900px;

    margin: 40px auto;   /*  IMPORTANT LINE (That centers the section horizontally). */

    padding: 30px;

    border-radius: 20px;
    

}


@keyframes fade{
    from{
        opacity:0;
        transform:translateY(10px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}
/* ACTIVE SIDEBAR */

.sidebar li.active{
    background:#2b2b2b;
    padding-left:15px;
    border-radius:10px;
    color:white;
    box-shadow:0 0 15px rgba(123,97,255,0.4);
}

.sidebar li.primary-action {
    background: #7b61ff;
    color: white;
    font-weight: bold;
    border-radius: 10px;
    padding: 15px;
}

/* TOPBAR */

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.top-right{
    display:flex;
    align-items:center;
    gap:20px;
}

#clock{
    color:#aaa;
    font-size:14px;
}

.profile{
    width:45px;
    height:45px;
    border-radius:50%;
    background:#7b61ff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:bold;
    box-shadow:0 0 15px rgba(123,97,255,0.5);
}
/* GLASS CARDS */

.card{
    
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,0.08);
    position:relative;
    overflow:hidden;
    overflow: hidden;
    min-width: 230px;
    
}

/* CARD GLOW */

.card::before{
    content:'';
    position:absolute;
    width:200px;
    height:200px;
    background:rgba(123,97,255,0.15);
    border-radius:50%;
    top:-80px;
    right:-80px;
}

/* APP IMAGE */

.app-image{
    width:100%;
    height:160px;
    object-fit:cover;
    border-radius:12px;
    margin-bottom:15px;
    display:block;
    background:#222;
}
/* MODAL */

.modal{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.7);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:1000;
}


/*///////////////////////////

//////////MODAL CONTENT

///////////////////////////*/
.modal-content{
    width:400px;
    background:#1f1f1f;
    padding:30px;
    border-radius:20px;
    position:relative;
    display:flex;
    flex-direction:column;
    gap:15px;
    box-shadow:0 0 30px rgba(123,97,255,0.4);
}

.modal-content input{
    padding:12px;
    border:none;
    border-radius:10px;
    background:#2b2b2b;
    color:white;
}
.modal{
    z-index:9999
}
   

.close{
    position:absolute;
    top:10px;
    right:15px;
    font-size:32px;
    cursor:pointer;
    color:white;
}
  
.close{
    z-index:10000;
}

.close:hover{
    color:white;
}


/*////////////////////////

/////CARD BUTTONS

////////////////////////*/
.card-buttons {

    display: flex;

    justify-content: center;

    gap: 8px;

    margin-top: 15px;

    flex-wrap: wrap;

}

.card-buttons button {

    padding: 6px 10px;

    font-size: 12px;

}
.hidden{
    display: none;
}
/* CATEGORY BADGE */

.badge{
    display:inline-block;
    padding:6px 12px;
    background:#9584ff;
    border-radius:20px;
    font-size:12px;
    margin-bottom:15px;
    box-shadow:0 0 10px rgba(123,97,255,0.5);
}
/* FILTER BUTTONS */

.filters{
    display:flex;
    gap:15px;
    margin-bottom:25px;
}
/* IMAGE PREVIEW */

.preview-image{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:12px;
    margin-top:15px;
    background:#222;
}
/* DROP ZONE */

.drop-zone{
    width:100%;
    padding:40px;
    border:2px dashed #7b61ff;
    border-radius:15px;
    text-align:center;
    cursor:pointer;
    color:#aaa;
    transition:0.3s;
}

.drop-zone:hover{
    background:rgba(123,97,255,0.08);
    color:white;
}
/* LOGIN SCREEN */

.login-screen{
    position:fixed;
    width:100%;
    height:100%;
    background:#111;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:999999;
}

.login-box{
    width:350px;
    background:#1f1f1f;
    padding:40px;
    border-radius:20px;
    display:flex;
    flex-direction:column;
    gap:20px;
    box-shadow:0 0 30px rgba(123,97,255,0.4);
}

.login-box h1{
    text-align:center;
}

.login-box input{
    padding:14px;
    border:none;
    border-radius:10px;
    background:#2b2b2b;
    color:white;
}
#dashboard{
    display:block;
    width:100%;
    
}

.dns-row{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:10px;
}

.dns-row label{
    min-width:100px;
    font-weight:bold;
}

/*  STATUS COLORS  */
.Active{
    color: lime;
    font-weight: bold;
}

.Expired{
    color: red;
    font-weight: bold;
}

.Suspended{
    color: orange;
    font-weight: bold;
}

.Active{
    color: lime;
    font-weight: bold;
}

.Expires\ Soon{
    color: gold;
    font-weight: bold;
}

.Expired{
    color: red;
    font-weight: bold;
}
/* --- NEW MODULE STYLES --- */

.topbar-section { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.search-input { width: 100%; padding: 12px; margin-bottom: 20px; border: none; border-radius: 10px; background: #2b2b2b; color: white; }
.table-container { background: #1f1f1f; padding: 20px; border-radius: 15px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 15px; text-align: left; border-bottom: 1px solid #333; }
.server-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.server-card { 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    }
.connection-status {
    margin: 15px 0;
    padding: 10px 12px;
    background: #2b2b2b;
    border-left: 4px solid #7c5cff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}
.status-indicator { padding: 5px 10px; border-radius: 5px; display: inline-block; margin-bottom: 10px; }
.status-indicator.online { background: rgba(50, 205, 50, 0.2); color: limegreen; }
.status-indicator.offline { background: rgba(255, 0, 0, 0.2); color: red; }
.server-stats { margin: 15px 0; color: #aaa; font-size: 14px; }
.btn-primary { background: #7b61ff; padding: 10px 20px; border-radius: 10px; }
.btn-secondary { background: #444; padding: 10px 20px; border-radius: 10px; }

/* --- DASHBOARD REDESIGN --- */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.dash-card {
    background: #1f1f1f;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
}

.dash-card i {
    font-size: 24px;
    color: #7b61ff;
}

.dash-card h3 {
    font-size: 24px;
}

.dash-card p {
    font-size: 12px;
    color: #aaa;
}

.quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.recent-activity {
    background: #1f1f1f;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.activity-item {
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

/* --- NOTIFICATION CENTER STYLES --- */

.notifications-badge {
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    background: #2b2b2b;
    color: #7b61ff;
    font-weight: bold;
}

.notif-card {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
    align-items: center;
    background: #1f1f1f;
    border-left: 5px solid #ccc;
}

.notif-card.success { border-left-color: limegreen; }
.notif-card.warning { border-left-color: orange; }
.notif-card.error { border-left-color: red; }
.notif-card.info { border-left-color: #7b61ff; }

.notif-content h4 { margin: 0; }
.notif-content p { margin: 5px 0; color: #aaa; }
.notif-content small { color: #666; }

/* --- GLOBAL SEARCH STYLES --- */

.search-box {
    position: relative;
}

.search-results {

    display:none;

    position:absolute;

    top:100%;
    left:0;

    width:300px;

    background:#1f1f1f;

    border-radius:10px;

    box-shadow:0 0 15px rgba(0,0,0,.5);

    z-index:100;

    max-height:400px;

    overflow-y:auto;

    padding:10px;
}

.search-results h4 {
    color: #7b61ff;
    padding: 5px;
    margin: 10px 0 5px 0;
}

.result-item {
    padding: 8px;
    cursor: pointer;
    border-radius: 5px;
}

.result-item:hover {
    background: #2b2b2b;
}

/* --- REUSABLE MODAL STYLES --- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.reusable-modal {
    background: #1f1f1f;
    padding: 25px;
    border-radius: 15px;
    width: 400px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .reusable-modal {
    transform: scale(1);
}

.modal-header h2 {
    margin-bottom: 15px;
    color: #7b61ff;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* --- TIMELINE STYLES --- */

.timeline { list-style: none; padding-left: 15px; }
.timeline li {
    padding: 10px 0;
    border-left: 2px solid #7b61ff;
    padding-left: 15px;
    margin-bottom: 5px;
    position: relative;
}
.timeline li::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 15px;
    width: 10px;
    height: 10px;
    background: #7b61ff;
    border-radius: 50%;
}

/* --- PREMIUM SAAS WIZARD MODAL --- */
@keyframes modalScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.wizard-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.wizard-modal {
    background: #1f1f1f;
    width: 90%;
    max-width: 1000px;
    height: 90%;
    max-height: 700px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 1px 1px rgba(123, 97, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: modalScale 0.3s ease-out forwards;
}

.wizard-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.wizard-header h2 { margin: 0; font-size: 22px; color: white; }
.wizard-header p { margin: 5px 0 0; color: #888; font-size: 14px; }
.close-btn { cursor: pointer; font-size: 24px; color: #888; }
.close-btn:hover { color: white; }

.wizard-stepper {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    background: #161616;
}
.step-item {
    flex: 1; text-align: center; font-size: 12px; color: #555;
    position: relative;
}
.step-item.active { color: #7b61ff; font-weight: bold; }
.step-item.completed { color: #7b61ff; }

.wizard-content-area {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.wizard-footer {
    padding: 20px 30px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background: #1f1f1f;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}


/* --- ACTIVITY CENTER STYLES --- */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}
.activity-card {
    background: #1f1f1f;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    align-items: center;
    border: 1px solid #333;
}
.activity-icon {
    font-size: 20px;
    color: #4a90e2;
}
.activity-info {
    flex: 1;
}
.activity-info strong {
    display: block;
    margin-bottom: 5px;
}
.activity-info p {
    margin: 0;
    color: #aaa;
    font-size: 14px;
}
.activity-info small {
    display: block;
    margin-top: 5px;
    color: #666;
}
.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.controls select {
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #2b2b2b;
    color: white;
}

.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.recycle-table{
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
}

.recycle-table th,
.recycle-table td{

    padding:12px;
    border-bottom:1px solid #333;
    text-align:left;
}

.recycle-table th{
    background:#1d1d1d;
    color:white;
}

.recycle-table tr:hover{
    background:#262626;
}

.restoreBtn{

    padding:6px 14px;
    cursor:pointer;
}

.recycle-card{
    width: 100%;
    max-width: 1000px;
}

.table-wrapper{
    overflow-x: auto;
    width: 100%;
}

.recycle-table{
    width:100%;
    table-layout:auto;
}

.recycle-table td,
.recycle-table th{
    padding:12px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.dns-manager {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,.35);
}

.dns-manager h1 {
    margin-top: 0;
    margin-bottom: 25px;
}

.dns-manager h3 {
    margin-top: 25px;
    margin-bottom: 10px;
}

.dns-manager input {
    width: 100%;
    max-width: 420px;
    margin-bottom: 12px;
}

.dns-manager button {
    margin-top: 20px;
    margin-right: 10px;
}

.connection-result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    background: #1f2937;
    border: 1px solid #374151;
}

.connection-result h3 {
    margin-top: 0;
    color: #ffffff;
}

.connection-result p {
    margin: 10px 0;
    color: #d1d5db;
}

.status-success {
    color: #22c55e;
    font-weight: bold;
}

.status-failed {
    color: #ef4444;
    font-weight: bold;
}

.status-testing {
    color: #f59e0b;
    font-weight: bold;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    align-items: stretch;
}

.settings-grid .card {
    width: 100%;
    min-height: 220px;
    box-sizing: border-box;
}

.settings-back-btn {
    margin-top: 35px;
}

.settings-grid .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.settings-grid .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.settings-grid .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.settings-grid .card button {
    width: 100%;
    margin-top: auto;
}

.provider-card {

    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    max-width: 900px;

}

.provider-header {

    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;

}

.provider-header h2 {

    margin: 0;

}

.provider-status {

    padding: 8px 14px;
    border-radius: 20px;
    font-weight: bold;

}

.provider-status.online {

    background: #1d6f3b;
    color: white;

}

.provider-status.offline {

    background: #5b2323;
    color: white;

}

.provider-actions {

    margin-top: 20px;

}

.provider-actions button {

    margin-right: 10px;

}

.provider-container{
    width:100%;
    max-width:900px;
    margin-top:20px;
}
 
.provider-card{
    max-width:600px;
    width:100%;
}

.provider-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.modal {

    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.65);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;

}

.modal.hidden {

    display: none;

}

.modal-content {

    background: #1f1f1f;

    border-radius: 16px;

    padding: 25px;

    width: 500px;

    max-width: 90%;

}

.modal-header {

    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;

}

.close-btn {

    background: none;
    border: none;

    color: white;

    font-size: 22px;

    cursor: pointer;

}

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

.form-group label{
    margin-bottom:6px;
    font-weight:600;
}

.form-group input,
.form-group select{
    padding:10px;
    border-radius:8px;
    border:1px solid #444;
    background:#2b2b2b;
    color:white;
}

.modal-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:20px;
}

