/* Font Face Definitions */
@font-face {
    font-family: 'Roboto';
    src: local('Roboto Regular'), local('Roboto-Regular'),
         url('../fonts/roboto/Roboto-Regular.woff2') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: local('Roboto Medium'), local('Roboto-Medium'),
         url('../fonts/roboto/Roboto-Medium.woff2') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: local('Roboto Bold'), local('Roboto-Bold'),
         url('../fonts/roboto/Roboto-Bold.woff2') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f8f8;
    color: #212121;
    line-height: 1.6;
}

/* Bootstrap Overrides */
.navbar {
    background-color: #1A237E !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding:20px 0px;
}

.navbar-brand {
    color: white !important;
    font-weight: 500;
}

.navbar-nav .nav-link {
    color: white !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #64B5F6 !important;
}

.display-4 {
    color: #1A237E;
    font-weight: 500;
}

.lead {
    color: #212121;
    font-size: 1.2em;
}

.btn-primary {
    background-color: #1565C0 !important;
    border-color: #1565C0 !important;
    padding: 10px 20px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #0D47A1 !important;
    border-color: #0D47A1 !important;
    box-shadow: none !important;
}

.card {
    background-color: white;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: #1A237E !important;
    font-weight: 500;
    font-size: 1.2rem !important;
}

.card-text {
    color: #212121;
}

.card-img-top {
    max-height: 120px;
    object-fit: contain;
    padding: 1rem;
}

.alert-info {
    background-color: rgba(26, 35, 126, 0.1);
    border: none;
    color: #1A237E;
}

/* Footer Styles */
.footer {
    background-color: #212121 !important;
    color: white !important;
    padding: 25px 0;
}

.footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #FF9800 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5em;
    }
    
    .lead {
        font-size: 1.1em;
    }
    
    .card-img-top {
        max-height: 100px;
    }
    
    .navbar-nav {
        background-color: #1A237E;
        padding: 10px;
    }
} 

.related-tool-title {
    font-size: 1.1rem; /* Slightly larger font size */
    font-weight: normal; /* Slightly bolder font weight */
    margin: 5px 0; /* Added margin */
    padding: 0;
}

/* Tool Icon Container */
.tool-icon-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background-color: #fff;
    margin-bottom: 1rem;
}

.tool-icon-container img {
    width: 100%;
    height: auto;
}

/* Input Styles */
::placeholder {
    font-size: 0.9rem;
    color: #9e9e9e !important;
    opacity: 0.8;
}

:-ms-input-placeholder {
    font-size: 0.9rem;
    color: #9e9e9e !important;
    opacity: 0.8;
}

::-ms-input-placeholder {
    font-size: 0.9rem;
    color: #9e9e9e !important;
    opacity: 0.8;
} 

.example-equation {
    cursor: pointer;
}

.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 0px;
    right: 0px;
    width: 100%;
    margin: 0 auto;   
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;   
}

.cookie-consent-content {
    background: rgba(240, 240, 240, 0.9);
    color: #212121;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-consent.visible {
    display: flex;
    opacity: 1;
}

.cookie-consent p {
    margin: 0;
    padding-right: 2rem;
    font-size: 0.95rem;
}

.cookie-consent button,
.btn-justify {
    background: #1565C0;
    color: white !important;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 500;
}

.cookie-consent button:hover,
.btn-justify:hover {
    background: #0D47A1;
}



.ph-scale-container {
    position: relative;
    width: 100%;
    height: 40px;
    background: linear-gradient(to right, #ff0000, #ff9900, #00ff00, #0099ff, #9900ff);
    border-radius: 5px;
    margin-top: 20px;
}

.ph-indicator {
    position: absolute;
    width: 10px;
    height: 40px;
    background-color: #000;
    border: 2px solid #fff;
    border-radius: 3px;
    transform: translateX(-50%);
    transition: left 0.3s ease;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .navbar-nav {
    padding-right: 0;
}

[dir="rtl"] .me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

[dir="rtl"] .ms-3 {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

[dir="rtl"] .text-md-start {
    text-align: right !important;
}

[dir="rtl"] .text-md-end {
    text-align: left !important;
}

[dir="rtl"] .float-end {
    float: left !important;
}

[dir="rtl"] .float-start {
    float: right !important;
}

[dir="rtl"] .dropdown-menu {
    text-align: right;
}

[dir="rtl"] .form-check {
    padding-left: 0;
    padding-right: 1.5em;
}

[dir="rtl"] .form-check .form-check-input {
    float: right;
    margin-left: 0;
    margin-right: -1.5em;
}

/* Links */
a.text-decoration-none {
    color: #0D47A1 !important;
    transition: color 0.3s ease;
}

a.text-decoration-none:hover {
    color: #1565C0 !important;
}

