/* root_new.css - Global styles with moksho.css look and feel */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&family=Montserrat:wght@400;500;600&display=swap');

/* CSS Variables - Extended from moksho */
:root {
    /* Primary colors - keeping your brand colors but adapting to moksho style */
    --primary-color: #0056b3;
    /*#007bff;*/
    --secondary-color: #007bff;
    --accent-color: #034c8c;
    --bright-accent: #05c7f2;
    
    /* Backgrounds */
    --background-color: #fff;
    --secondary-bg: #f5f5f5;
    --card-bg: #fff;
    --container-bg: #f9f9f9;
    
    /* Header & Footer */
    --header-bg: #6B9FD0;
    --header-border: #eaeaea;
    --footer-bg: #333;
    --footer-text: #fff;
    
    /* Text colors */
    --text-color: #333;
    --text-light: #666;
    --link-color: #007bff;
    --link-hover: #0056b3;
    
    /* Borders & Shadows */
    --border-color: #eaeaea;
    --border-radius: 8px;
    --input-border: #ccc;
    --input-focus: #007bff;
    
    /* Hover effects */
    --hover-transform: translateY(-2px);
    --hover-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    
    /* Fonts */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --font-quicksand: 'Quicksand', sans-serif;
}

/* Base / Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Global Body Styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* Links */
a {
    text-decoration: none;  /* text-decoration: underline; */
    color: #007bff;           /* blue link color */
}

a:hover {
  color: var(--bright-accent);           /* darker blue on hover */
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-color);
    margin: 0;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin: 0 0 1rem;
    line-height: 1.6;
}

/* Header */
.site-header,
.header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
}

.header img {
    cursor: pointer;
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Logo */
.logo {
    display: flex;
    width: auto;
    align-items: center;
    padding: 0.5rem 0;
}


/* Welcome Div */
.welcome-div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.9rem;
    color: var(--text-light);
    gap: 0.25rem;
}

/* Navigation */
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.site-nav ul li a {
    font-size: 1rem;
    color: var(--text-color);
    transition: color 0.3s ease;
    font-weight: 500;
}

.site-nav ul li a:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Buttons */
.btn,
button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary,
button:not([class]) {
    background-color: var(--primary-color);
    background-color: #0056b3;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
    display: inline-block;  /* key: button wraps around its text */
    width: auto; 
}

.btn-primary:hover,
button:not([class]):hover {
    background-color: var(--secondary-color);
    transform: var(--hover-transform);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: var(--hover-transform);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--bright-accent);
}

.btn-accent:hover {
    background-color: #0280be;
    transform: var(--hover-transform);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Form Elements */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
    background-color: #fff;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

input[type="text"]:hover,
input[type="password"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
input[type="tel"]:hover,
select:hover,
textarea:hover {
    border-color: var(--bright-accent);
}

input::placeholder,
textarea::placeholder {
    color: #999;
    font-size: 0.95rem;
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    appearance: none;
}

/* Textarea */
textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.text-full {
    width: 100%;
    max-width: 100%;
}

/* Labels */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.bold-label {
    font-weight: 700;
}

/* File Upload */
input[type="file"] {
    display: none;
}

.custom-file-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-file-label:hover {
    background-color: #0056b3;
    transform: var(--hover-transform);
}

input[type="file"]:focus + .custom-file-label {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--hover-shadow);
    transform: var(--hover-transform);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

thead {
    background-color: #f8f9fa;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    color: var(--text-color);
}

tr:hover {
    background-color: #f8f9fa;
}

tr:last-child td {
    border-bottom: none;
}

/* Lists */
ul, ol {
    line-height: 1.8;
    margin: 1rem 0;
}

.styled-list {
    list-style: none;
    padding-left: 0;
}

.styled-list li {
    padding-left: 1.5rem;
    margin: 0.75rem 0;
    position: relative;
}

.styled-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Sections */
section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background-color: var(--secondary-bg);
}

/* Footer */
.site-footer,
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: .5rem 0;
    text-align: center;
    margin-top: 2rem;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem; /* adds subtle spacing between text and nav */
}

.site-footer nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
    margin: 1rem 0 0;
}

.site-footer nav ul li a {
    color: var(--footer-text);
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.site-footer nav ul li a:hover {
    opacity: 0.8;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

#log-out-link {
    cursor: pointer;
    text-decoration: underline;
    color: var(--primary-color);
}

#log-out-link:hover {
    color: var(--link-hover);
}

/* Mode-specific visibility */
body.mode-recruiter [data-role="recruiter"] {
    display: block;
}

body.mode-recruiter [data-role="jobseeker"] {
    display: none;
}

body.mode-jobseeker [data-role="recruiter"] {
    display: none;
}

body.mode-jobseeker [data-role="jobseeker"] {
    display: block;
}


.section-wrapper {
  display: grid;
  grid-template-areas:
    'client-data'
    'client-btn';
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(var(--accent-rgb, 0, 123, 255), 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  max-width: 100%;
  margin-top: 1.25rem;
}

.section-wrapper:hover {
  border-color: rgba(var(--accent-rgb, 0, 123, 255), 0.4);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes flash {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.flashing-text {
    color: #dc3545;
    animation: flash 1s infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

.dual-view {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.dual-view[style*="display: none"] {
    opacity: 0;
}

.dual-view:not([style*="display: none"]) {
    opacity: 1;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Alert/Message Boxes */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Form Status */
.form-status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.form-status.success {
    color: #28a745;
}

.form-status.error {
    color: #dc3545;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.moksho h4 {
  font-size: 1.5rem;  /* default size for larger screens */
  font-weight: 600;
}

/* Responsive / Mobile */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
    .moksho h4 {
    font-size: .8rem;   /* smaller text for mobile */
    font-weight: strong; /* optional: lighter like <p> */
  }

    section {
        padding: 2rem 0;
    }

    .logo {
        width: auto;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        right: 0;
        background: #fff;
        width: 200px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    }

    .site-nav.open {
        transform: translateX(0);
    }

    .site-nav ul {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .welcome-div {
        font-size: 0.85rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
}

