/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 0;
    padding-left: 0;
    padding-right: 0;
    position: relative;
    z-index: 1;
}

/* Override the default bootstrap behavior where horizontal description lists
   will truncate terms that are too long to fit in the left column
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

/* Landing Page Styles */
:root {
    --safety-orange: #FF6700;
    --asphalt-black: #1A1A1A;
    --light-gray: #f5f5f5;
    --text-gray: #333;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--asphalt-black);
    background-color: white;
    margin: 0;
    padding: 0;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, var(--asphalt-black) 0%, #2d2d2d 100%);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hamburger Menu */
.hamburger-menu {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover span {
    background-color: var(--safety-orange);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--asphalt-black) 0%, #1a1a1a 100%);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 30px 20px 25px;
    border-bottom: 3px solid var(--safety-orange);
    background: linear-gradient(135deg, #2d2d2d 0%, var(--asphalt-black) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sidebar-header h3 {
    font-family: 'Oswald', sans-serif;
    color: white;
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(255, 103, 0, 0.3);
}

.sidebar-close {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 2rem;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.sidebar-close span {
    display: block;
    margin-top: -3px;
}

.sidebar-close:hover {
    background: var(--safety-orange);
    border-color: var(--safety-orange);
    transform: rotate(90deg);
    box-shadow: 0 4px 15px rgba(255, 103, 0, 0.4);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 15px;
    margin: 0;
    flex-grow: 1;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.sidebar-menu li a::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.sidebar-menu li a:hover::before {
    left: 100%;
}

.sidebar-menu li a::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--safety-orange);
    border-right: 2px solid var(--safety-orange);
    opacity: 0;
    transition: all 0.3s ease;
}

.sidebar-menu li a:hover {
    background: rgba(255, 103, 0, 0.15);
    border-color: var(--safety-orange);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 103, 0, 0.2);
}

.sidebar-menu li a:hover::after {
    opacity: 1;
    right: 20px;
}

.sidebar-menu li a.menu-highlight {
    background: linear-gradient(135deg, var(--safety-orange) 0%, #ff8020 100%);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(255, 103, 0, 0.4);
}

.sidebar-menu li a.menu-highlight:hover {
    background: linear-gradient(135deg, #ff8020 0%, #ffaa20 100%);
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 103, 0, 0.5);
}

.sidebar-menu li a.menu-highlight .menu-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.menu-icon {
    font-size: 1.4rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.menu-text {
    font-weight: 600;
    letter-spacing: 0.5px;
    flex-grow: 1;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    cursor: pointer;
}

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

body.sidebar-open {
    overflow: hidden;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 15px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    flex-shrink: 0;
}

.sidebar-footer form {
    margin: 0;
}

.btn-sidebar-action {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    cursor: pointer;
}

.btn-sidebar-action::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn-sidebar-action:hover::before {
    left: 100%;
}

.btn-sidebar-action:hover {
    background: rgba(255, 103, 0, 0.15);
    border-color: var(--safety-orange);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 103, 0, 0.2);
    color: white;
    text-decoration: none;
}

.logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: var(--safety-orange);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-image {
    width: auto;
    height: 50px;
    background-image: url('../images/SoloPage.png');
    background-size: cover;
    background-position: left center; /* show middle */
}

.slogan p {
    font-family: 'Lato', sans-serif;
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
}

.slogan .user-email {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 4px;
}

.header-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-login,
.btn-signup {
    font-family: 'Oswald', sans-serif;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn-login {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--asphalt-black);
    text-decoration: none;
    border-color: white;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-signup {
    background: linear-gradient(135deg, var(--safety-orange) 0%, #ff8020 100%);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(255, 103, 0, 0.4);
}

.btn-signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-signup:hover::before {
    left: 100%;
}

.btn-signup:hover {
    background: linear-gradient(135deg, #ff8020 0%, #ffaa20 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 103, 0, 0.5);
    color: white;
    text-decoration: none;
}

.btn-login:active,
.btn-signup:active {
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--safety-orange) 0%, #ff8020 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-headline {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-subheadline {
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 400;
}

.btn-cta {
    font-family: 'Oswald', sans-serif;
    display: inline-block;
    background-color: var(--asphalt-black);
    color: white;
    padding: 18px 50px;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cta:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    color: white;
    text-decoration: none;
}

/* Trust Section */
.trust-section {
    background-color: white;
    padding: 0;
}

.trust-content {
    max-width: none;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0;
}

.trust-image {
    flex: 1.2;
    text-align: center;
}

.trust-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.trust-text {
    flex: 0.8;
}

.trust-statement {
    font-family: 'Lato', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    color: #FF6700;
    line-height: 1.4;
}

/* Features Section */
.features-section {
    background-color: var(--light-gray);
    padding: 80px 0;
    text-align: center;
}

.features-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--asphalt-black);
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.feature-item {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.checkmark {
    color: var(--safety-orange);
}

.feature-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--asphalt-black);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-description {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    color: #666;
}

/* Footer */
.site-footer {
    background-color: var(--asphalt-black);
    color: white;
    text-align: center;
    padding: 40px 20px 25px;
    margin-top: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.footer-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--safety-orange);
    margin: 0 0 5px 0;
}

.footer-brand {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    letter-spacing: 0.5px;
}

.footer-text {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: #999;
    line-height: 1.4;
}

.footer-support {
    margin-top: 5px;
}

.site-footer a {
    font-family: 'Lato', sans-serif;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--safety-orange);
    text-decoration: none;
}

.footer-copyright {
    font-family: 'Lato', sans-serif;
    margin: 0;
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.site-footer p {
    font-family: 'Lato', sans-serif;
    margin: 0;
    font-size: 1.1rem;
}

@media (max-width: 576px) {
    .footer-links {
        gap: 30px;
    }
}

/* Remove default hr */
.body-content hr {
    display: none;
}

/* Clients Page Styles */
.clients-page {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.clients-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--safety-orange);
}

.clients-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--asphalt-black);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-add-client {
    font-family: 'Oswald', sans-serif;
    background: linear-gradient(135deg, var(--safety-orange) 0%, #ff8020 100%);
    color: white;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 103, 0, 0.3);
}

.btn-add-client:hover {
    background: linear-gradient(135deg, #ff8020 0%, #ffaa20 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 103, 0, 0.4);
}

.clients-grid-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.clients-grid {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Lato', sans-serif;
}

.clients-grid thead {
    background: linear-gradient(135deg, var(--asphalt-black) 0%, #2d2d2d 100%);
    color: white;
}

.clients-grid thead th {
    padding: 18px 20px;
    text-align: left;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clients-grid tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.clients-grid tbody tr:hover {
    background-color: #f8f8f8;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.clients-grid tbody tr:last-child {
    border-bottom: none;
}

.clients-grid tbody td {
    padding: 18px 20px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.hidden-column {
    display: none;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-monthly {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.badge-annual {
    background: linear-gradient(135deg, #2196F3 0%, #42A5F5 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.actions-cell {
    display: flex;
    gap: 10px;
}

.btn-action {
    font-family: 'Oswald', sans-serif;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit {
    background-color: #FFC107;
    color: var(--asphalt-black);
}

.btn-edit:hover {
    background-color: #FFD54F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.btn-delete {
    background-color: #F44336;
    color: white;
}

.btn-delete:hover {
    background-color: #E53935;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
}

.modal.show {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--asphalt-black) 0%, #2d2d2d 100%);
    border-radius: 15px 15px 0 0;
    color: white;
}

.modal-header h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-modal {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    font-family: 'Oswald', sans-serif;
    display: block;
    margin-bottom: 8px;
    color: var(--asphalt-black);
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    font-family: 'Lato', sans-serif;
    width: 100%;
    max-width: none;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--safety-orange);
    box-shadow: 0 0 0 3px rgba(255, 103, 0, 0.1);
}

.form-control:hover {
    border-color: #bdbdbd;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    cursor: pointer;
    background-color: white;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.btn-modal-cancel,
.btn-modal-save {
    font-family: 'Oswald', sans-serif;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-cancel {
    background-color: #757575;
    color: white;
}

.btn-modal-cancel:hover {
    background-color: #616161;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(117, 117, 117, 0.4);
}

.btn-modal-save {
    background: linear-gradient(135deg, var(--safety-orange) 0%, #ff8020 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 103, 0, 0.3);
}

.btn-modal-save:hover {
    background: linear-gradient(135deg, #ff8020 0%, #ffaa20 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 103, 0, 0.5);
}

/* Delete Confirmation Modal */
.modal-content-small {
    max-width: 450px;
}

/* Large Modal for Templates */
.modal-content-large {
    max-width: 900px;
    width: 95%;
}

/* Code Editor Textarea */
.code-editor {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    background-color: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    min-height: 200px;
    resize: vertical;
    tab-size: 2;
}

.code-editor:focus {
    background-color: #ffffff;
    border-color: var(--safety-orange);
    box-shadow: 0 0 0 3px rgba(255, 103, 0, 0.1);
}

.modal-header-danger {
    background: linear-gradient(135deg, var(--safety-orange) 0%, #ff8020 100%);
}

.delete-message {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    text-align: center;
}

.delete-client-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--asphalt-black);
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #fff3e0;
    border-left: 4px solid var(--safety-orange);
    border-radius: 5px;
}

.delete-warning {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: var(--safety-orange);
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0;
    font-weight: 600;
}

.btn-modal-cancel-delete {
    font-family: 'Oswald', sans-serif;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #757575;
    color: white;
}

.btn-modal-cancel-delete:hover {
    background-color: #616161;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(117, 117, 117, 0.4);
}

.btn-modal-delete-confirm {
    font-family: 'Oswald', sans-serif;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--safety-orange) 0%, #ff8020 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 103, 0, 0.3);
}

.btn-modal-delete-confirm:hover {
    background: linear-gradient(135deg, #ff8020 0%, #ffaa20 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 103, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-subheadline {
        font-size: 1.2rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .header-buttons {
        margin-top: 15px;
    }

    .btn-login,
    .btn-signup {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .trust-content {
        flex-direction: column;
        gap: 30px;
    }

    .trust-statement {
        font-size: 1.2rem;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .clients-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .clients-header h2 {
        font-size: 2rem;
    }

    .clients-grid-container {
        overflow-x: auto;
    }

    .clients-grid {
        font-size: 0.85rem;
    }

    .clients-grid thead th,
    .clients-grid tbody td {
        padding: 12px 10px;
    }

    .actions-cell {
        flex-direction: column;
        gap: 5px;
    }

    .btn-action {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h3 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .btn-modal-cancel,
    .btn-modal-save {
        width: 100%;
    }
}

/* Tools Section */
.tools-section {
    background-color: white;
    padding: 80px 0;
    text-align: center;
}

.tools-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--asphalt-black);
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tools-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.tool-card {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--safety-orange);
}

.tool-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.tool-icon .icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon .icon {
    transform: scale(1.2) rotate(5deg);
}

.tool-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--asphalt-black);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-description {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-tool {
    font-family: 'Oswald', sans-serif;
    display: inline-block;
    background: linear-gradient(135deg, var(--safety-orange) 0%, #ff8020 100%);
    color: white;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 103, 0, 0.3);
}

.btn-tool:hover {
    background: linear-gradient(135deg, #ff8020 0%, #ffaa20 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 103, 0, 0.5);
    color: white;
    text-decoration: none;
}

.btn-safety-orange {
    background-color: var(--safety-orange);
    border-color: var(--safety-orange);
    color: white;
}

.btn-safety-orange:hover {
    background-color: #E55A00;
    border-color: #E55A00;
    color: white;
}

.btn-safety-orange:active,
.btn-safety-orange:focus {
    background-color: #CC4F00;
    border-color: #CC4F00;
    color: white;
}

/* Fix modal z-index and backdrop issues */
.modal-backdrop {
    z-index: 1040 !important;
    opacity: 0.5 !important;
}

.modal-backdrop.show {
    opacity: 0.5 !important;
}

.modal {
    z-index: 1055 !important;
}

.modal-dialog {
    position: relative;
    z-index: 1056 !important;
}

.modal-content {
    position: relative;
    z-index: 1056 !important;
    background-color: white !important;
}

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

    .tools-title {
        font-size: 2rem;
    }
}

/* Password toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 0.85rem;
    font-family: 'Lato', sans-serif;
    padding: 2px 4px;
}

.password-toggle:hover {
    color: #333;
}
