:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white-color: #fff;
    --gray-color: #6c757d;
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Animated Gradient Background (Placeholder - JS will handle) */
#gradient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.tool-category {
 margin-bottom: 40px;
}
.tool-category h3 {
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
 text-align: center;
}

.tool-card {
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    height: 100%; /* Ensure cards are same height */
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.tool-card .card-body {
    text-align: center;
}

.tool-card .tool-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tool-card .card-title a { /* Style for the link inside the card title */
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.tool-card .card-text {
 font-size: 0.95rem;
 line-height: 1.5;
 min-height: 45px; /* Give text a fixed height for better alignment */
    color: var(--gray-color);
}

.tool-card .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
    font-size: 0.9rem;
    padding: 8px 15px;
}

.tool-card .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

    color: var(--gray-color);
}

/* Individual Tool Pages */
.tool-page-container {
    padding: 40px 0;
    flex-grow: 1; /* Allows content to take up available space */
}

.tool-page-container h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.tool-page-container h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--gray-color);
}

.tool-description {
    margin-bottom: 30px;
    color: var(--dark-color);
}

.tool-input-output .form-label {
    font-weight: bold;
    color: var(--dark-color);
}

.tool-input-output textarea {
    width: 100%;
    min-height: 200px; /* Base height */
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-family: 'Roboto Mono', monospace; /* Monospaced for code/text tools */
    font-size: 1rem;
    resize: vertical; /* Allow vertical resizing */
}

/* Increase text area size for larger screens */
@media (min-width: var(--breakpoint-md)) {
    .tool-input-output textarea {
        min-height: 300px;
    }
}

@media (min-width: var(--breakpoint-lg)) {
    .tool-input-output textarea {
        min-height: 400px;
    }
}


.tool-options {
    margin-bottom: 20px;
    padding: 20px;
    background-color: rgba(var(--light-color), 0.8);
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tool-options .form-check {
    margin-right: 15px;
    display: inline-block;
}

.tool-actions .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 40px 0;
    margin-top: auto; /* Pushes footer to the bottom */
}

.footer h5 {
    color: var(--white-color);
    margin-bottom: 15px;
}

.footer a {
    color: var(--gray-color);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

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

.footer p {
    margin-bottom: 0;
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Cookie Consent Box */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(var(--dark-color), 0.9);
    color: var(--white-color);
    padding: 15px 20px;
    text-align: center;
    z-index: 1050; /* Below navbar, above most content */
    display: none; /* Hidden by default */
}

.cookie-consent-banner p {
    margin: 0;
    display: inline-block;
    margin-right: 15px;
}

.cookie-consent-banner .btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
    padding: 5px 15px;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: var(--breakpoint-sm)) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .hero-section .btn-primary {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .tool-card .card-title {
        font-size: 1rem;
    }

    .tool-card .tool-icon {
        font-size: 2rem;
    }

    .tool-page-container h1 {
        font-size: 2rem;
    }

    .tool-page-container h2 {
        font-size: 1.2rem;
    }

    .tool-actions .btn {
        width: 100%;
        margin-right: 0;
    }

    .cookie-consent-banner p {
        display: block;
        margin-bottom: 10px;
        margin-right: 0;
    }
}