* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9fafb;
}

body {
    display: flex;
    flex-direction: column;
}

header {
    background-color: #111827;
    color: white;
    padding: 15px 30px;
    font-size: 20px;
    font-weight: bold;
}

.dashboard {
    display: flex;
    flex: 1;
    height: 100%;
}

.sidebar {
    width: 240px;
    background-color: #1f2937;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #e5e7eb;
}

.sidebar a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    padding: 10px;
    border-radius: 5px;
    display: block;
    transition: background 0.2s ease;
}

.sidebar a:hover {
    background-color: #374151;
    color: white;
}

.main-content {
    flex: 1;
    padding: 40px;
    background-color: #f3f4f6;
}

.main-content h1 {
    font-size: 26px;
    color: #111827;
    margin-bottom: 25px;
}

.main-content ul {
    list-style-type: none;
    padding-left: 0;
}

.main-content li {
    margin-bottom: 10px;
}

.main-content a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.main-content a:hover {
    color: #1d4ed8;
}

footer {
    text-align: center;
    background-color: #f3f4f6;
    padding: 15px;
    font-size: 14px;
    color: #6b7280;
}


.stats {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 220px;
    padding: 25px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 500;
}

.card .number {
    font-size: 32px;
    font-weight: bold;
}

/* Gradient backgrounds */
.gradient-blue {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.gradient-green {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.gradient-purple {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

 

.form-box {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 700px;
}

h2 {
    color: #111827;
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

input[type="text"],input[type="password"],input[type="email"],select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 16px;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 16px;
}

button[type="submit"] {
    width: 100%;
    background-color: #2563eb;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #1d4ed8;
}

button[type="button"] { 
    background-color: rgb(3, 214, 3);
    color: white;
    padding: 8px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.success {
    color: green;
    margin-bottom: 15px;
    text-align: center;
}

.errors {
    color: red;
    margin-bottom: 15px;
    list-style: none;
    padding-left: 0;
}


.table-container {
    margin-top: 30px;
    overflow-x: auto;
}

.domain-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.domain-table th, .domain-table td {
    padding: 14px 18px;
    text-align: left;
    font-size: 15px;
}

.domain-table thead {
    background-color: #f3f4f6;
    color: #374151;
    font-weight: 600;
}

.domain-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.domain-table tbody tr:hover {
    background-color: #eef2f7;
}

.btn-view, .btn-edit {
    text-decoration: none;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 4px;
    color: white;
    margin-right: 6px;
    transition: background 0.2s ease;
    border:none;
}

.btn-view {
    background-color: #3b82f6;
}
.btn-view:hover {
    background-color: #2563eb;
}

.btn-edit {
    background-color: #f39602;
    color:#FFF !important;
}
.btn-edit:hover {
    background-color: #e08b02;
}
.btn-delete {
    text-decoration: none;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 4px;
    color: #FFF !important;
    margin-right: 6px;
    transition: background 0.2s ease;
    background-color: #ef4444;
    border:none;
}
.btn-delete:hover {
    background-color: #dc2626;
}
.btn-logout {
    background-color: #ef4444;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}
.btn-logout:hover {
    background-color: #dc2626;
}


.pagination-links nav {
    display: inline-block;
    margin-top: 10px;
}

.pagination-links nav ul {
    display: flex;
    justify-content: center;
    gap: 10px;
}


.btn-copy {
    padding: 10px 12px;
    background-color: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
    width: auto;
}
.btn-copy:hover {
    background-color: #1e40af;
}
.d-none{
    display: none;
}
/* Reduce icon size */
.pagination svg {
    width: 1rem;
    height: 1rem;
}

/* Shrink button padding and font */
.pagination .inline-flex {
    font-size: 13px;
    padding: 4px 8px;
    min-width: 32px;
    min-height: 32px;
}

/* Ensure pagination items are aligned and centered */
.pagination span.relative.z-0 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 1rem;
}

/* Optional: Hover & active styling tweaks */
.pagination a:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.pagination .active span {
    background-color: #2563eb;
    color: #fff;
    border-color: #2563eb;
} 

.form-group{
    text-align: left;
}

 .login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.login-box h1 {
    margin-bottom: 20px;
    color: #111827;
}
.google-btn {
    background: #4285F4;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
}
.google-btn:hover {
    background: #357ae8;
}
.google-icon {
    background: white;
    border-radius: 2px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.google-icon img {
    width: 25px;
    height: 25px; 
    border-radius: 50%;
}
.script-code{
    display: none;
}
.d-block{
    display: block;
}