:root {
    --primary: #4682B4;
    --primary-dark: #3a6d99;
    --primary-light: #5a8fc1;
    --text: #333;
    --light-bg: #f5f8fa;
    --white: #ffffff;
    --gray: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
}

.logo span {
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
    text-decoration: none;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: bold;
}

.btn:hover {
    background-color: var(--primary-dark);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    color: var(--text);
    font-weight: 500;
    font-size: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0;
}

.dropdown-btn:hover {
    color: var(--primary);
}

.dropdown-btn::after {
    content: "▼";
    font-size: 0.6rem;
    margin-left: 0.3rem;
    transition: transform 0.3s;
}

.dropdown-btn.open::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--text);
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background-color: var(--light-bg);
    color: var(--primary);
    padding-left: 1.2rem;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    display: flex;
    margin: 2rem 0;
    gap: 2rem;
}

.content-area {
    flex: 1;
}

.ad-sidebar {
    width: 300px;
}

/* Ad Placeholders */
.ad-placeholder {
    background-color: #f8f8f8;
    border: 1px dashed #ccc;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.ad-label {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* Tools Grid */
.section-title {
    text-align: center;
    margin: 3rem 0 2rem;
    color: var(--primary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tool-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.tool-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-icon {
    font-size: 1.2rem;
}

/* Blog Section */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.blog-card .date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 3rem 0;
}

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

.footer-column h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 992px) {
    .main-content {
    flex-direction: column;
    }
    
    .ad-sidebar {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
    font-size: 2rem;
    }
    
    .ad-sidebar {
    grid-template-columns: 1fr;
    }
}


/* Tool-specific styles */
.tool-container {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
    margin: 2rem 0;
}

.tool-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray);
    padding-bottom: 1rem;
}

.tool-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--primary);
}

.tool-title {
    font-size: 1.5rem;
    color: var(--primary);
}

.tool-form {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.tool-input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-size: 1rem;
}

.tool-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.tool-btn:hover {
    background-color: var(--primary-dark);
}

.tool-results {
    background: #1e1e1e;
    color: #f0f0f0;
    font-family: monospace;
    padding: 1rem;
    border-radius: 4px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tool-form {
    flex-direction: column;
    }
}

.d-none {
  display: none !important; 
}


/* Form Elements */
.io-container {
    gap: 1.5rem;
    margin: 1.5rem;
    align-items: center;
}

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

.text-area-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.input-hint {
    font-size: 0.85rem;
    color: var(--text-light);
}

textarea {
    padding: 1rem;
    border: 1px solid var(--gray);
    border-radius: 8px;
    font-size: 0.9rem;
    min-height: 300px;
    resize: vertical;
    transition: all 0.2s;
    font-family: 'SF Mono', 'Roboto Mono', monospace;
    line-height: 1.5;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}


/* New Form Layout Styles */
.form-vertical {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-vertical .form-group {
  width: 100%;
}

.form-vertical .form-row {
  flex-direction: column;
  gap: 1.5rem;
}

.form-vertical label {
  display: block;
  margin-bottom: 0.5rem;
}

.form-vertical input,
.form-vertical select,
.form-vertical textarea {
  width: 100%;
  max-width: 600px;
}

.form-vertical .form-actions {
  margin-top: 1rem;
}


.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: black;
}

th, td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid #e1e5e9;
}

th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
  position: sticky;
  top: 0;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: #f8f9fa;
}

/* Responsive design */
@media (max-width: 768px) {
  th, td {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
  
  .table-container {
    margin: 0.5rem -1rem;
    width: calc(100% + 2rem);
  }
}

/* Optional: Zebra striping */
tr:nth-child(even) {
  background-color: #fafbfc;
}

/* Optional: Compact version */
table.compact {
  font-size: 0.9rem;
}

table.compact th,
table.compact td {
  padding: 0.6rem 0.8rem;
}

/* Optional: Bordered version */
table.bordered {
  border: 1px solid #e1e5e9;
}

table.bordered th,
table.bordered td {
  border: 1px solid #e1e5e9;
}

.login-body{
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #4682b4; /* steelblue */
    font-weight: 600;
    font-size: 28px;
}

.login-header p {
    color: #777;
    margin-top: 10px;
    font-size: 14px;
}

 .input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #4682b4;
    box-shadow: 0 0 0 2px rgba(70, 130, 180, 0.2);
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #4682b4;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #3a6d96;
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
}

.divider span {
    background-color: white;
    position: relative;
    padding: 0 15px;
    color: #777;
    font-size: 14px;
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        margin: 0 15px;
    }
}

.mobile-only {
    display: none;
}

@media (max-width: 767px) {
    .mobile-only {
        display: block;
    }
}