body {
    font-family: Raleway, "Open sans";
    background-color: #f8f9fa; /* Light background */
}

.pricing-card {
    border: 1px solid #ddd; /* Standard Bootstrap panel border */
    border-radius: 8px; /* Slightly rounded corners */
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    margin-bottom: 20px; /* Space between cards */
}

.pricing-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* More prominent shadow on hover */
}

.pricing-card .panel-heading {
    border-radius: 7px 7px 0 0; /* Match card border-radius */
    padding: 0px 15px;
}

.panel-default>.panel-heading {
    background-color: #fff;
    border-color: #fff;
    padding-top:30px;
}

.pricing-card .panel-title {
    font-size: 34px;
    font-weight: 700;
    color:#102334; 
    margin: 0;
}

.pricing-card .panel-body {
    padding: 10px 25px 30px;
    display: flex; /* Use flex for vertical alignment */
    flex-direction: column;
    min-height: 350px; /* Ensure consistent height */
}

@media (max-width: 767px) {
    .pricing-card .panel-body {
        padding: 40px;
    }
}

.pricing-card .price {
    font-size: 3.0em; /* Larger price text */
    font-weight: 600;
    color: #333;
}

.pricing-card .price small {
    font-size: 0.5em; /* Smaller period text */
    font-weight: normal;
}

.pricing-card ul {
    font-size: 0.95em;
    color: #555;
    padding-left: 0; /* Remove default list padding */
    list-style: none; /* Remove default bullets */
    flex-grow: 1; /* Allow list to fill space */
    margin-bottom: 20px; /* Space before button */
}

.pricing-card ul li {
    padding: 3px 0;
    border-bottom: 0px dashed #eee;
    display: flex;
    align-items: center;
    text-align: left;
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

.pricing-card ul li .glyphicon {
    margin-right: 8px;
    color: #505050; /* Green checkmark */
}

/* Custom button styles to mimic btn-outline-primary in Bootstrap 3 */
.btn-outline-primary {
    color: #d36716;
    background-color: transparent;
    background-image: none;
    border-color: #d36716;
}

.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
    padding: 5px;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active,
.open > .dropdown-toggle.btn-outline-primary {
    color: #fff;
    background-color: #d36716;
    border-color: #d36716;
}

/* SLIDER STYLES */
.guard-slider-container {
    position: relative;
    width: 90%; /* Πιάνει όλο το πλάτος του parent column */
    margin: 20px auto 50px auto;
    padding-bottom: 30px; /* Χώρος για τα labels κάτω */
}

.guard-slider-track {
    height: 28px; /* Πάχος γραμμής */
    background-color: #ff8f43;
    border-radius: 6px;
    position: relative;
}

.guard-slider-track .marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background-color: #ffa569;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    z-index: 0;
}

.guard-slider-track .marker.active {
    background-color: #d36716;
}

.guard-slider-thumb {
    width: 32px;
    height: 32px;
    background-color: #d36716;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.guard-slider-thumb:active {
    cursor: grabbing;
}

/* Styles for labels below the slider */
.guard-options-labels {
    position: absolute;
    bottom: 10px; /* Θέση κάτω από τον slider */
    left: 0;
    right: 0;
    /* Αφαιρούμε το display: flex εδώ για να τοποθετήσουμε τα labels με absolute positioning */
    font-size: 0.9em;
    color: #777;
    white-space: nowrap;
}

.guard-option-label {
    font-family: Raleway, "Open sans";
    position: absolute; /* Κάνουμε κάθε label absolute */
    text-align: center;
    /* Θα θέσουμε το 'left' για κάθε label μέσω JavaScript ή συγκεκριμένων CSS rules */
    /* Το translateX(-50%) θα κεντράρει το label ως προς τη δική του 'left' θέση */
    transform: translateX(-50%);
    display: inline-block; /* Για να κρατήσει το πλάτος του και να δεχτεί transform */
    width: auto; /* Το πλάτος θα είναι αυτόματα ανάλογα με το περιεχόμενο */
    padding: 0 5px; /* Μικρό padding για να μην "κολλάνε" οι λέξεις */
}

/* Ακριβής τοποθέτηση για κάθε label (επαναφορά και βελτίωση) */
.guard-options-labels .guard-option-label[data-index="0"] { left: 0%; }
.guard-options-labels .guard-option-label[data-index="1"] { left: 25%; }
.guard-options-labels .guard-option-label[data-index="2"] { left: 50%; }
.guard-options-labels .guard-option-label[data-index="3"] { left: 75%; }
.guard-options-labels .guard-option-label[data-index="4"] { left: 100%;}


.guard-option-label.active {
    font-weight: bold;
    color: #d36716;
}

.guard-count-display {
    text-align: center;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}
.guard-count-display span {
    color: #d36716; /* Χρώμα για την τιμή των guards */
}

/* Custom styles for Bootstrap 3.3.7 compatibility */
.btn-group-toggle .btn {
    border-radius: 0.5rem !important;
    transition: all 0.2s ease-in-out;
}
.btn-group-toggle .btn.active {
    background-color: #d36716; /* Primary blue */
    color: white;
    border-color: #d36716;
    margin: 0px 5px;
}
.btn-group-toggle .btn:not(.active) {
    background-color: #f0f0f0;
    color: #333;
    border-color: #ccc;
}
.btn-group-toggle {
    display: inline-flex;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 0px solid #ccc;
}

.pricing-card .panel-body {
    display: flex;
    flex-direction: column;
    min-height: 500px; /* Ensure consistent height */
}
.pricing-card ul {
    flex-grow: 1;
    margin-bottom: 20px;
}
.pricing-card .btn {
    margin-top: auto; /* Push button to the bottom */
}

.btn-outline-primary {
    color: #d36716;
    background-color: transparent;
    background-image: none;
    border-color: #d36716;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active,
.open > .dropdown-toggle.btn-outline-primary {
    color: #fff;
    background-color: #d36716;
    border-color: #d36716;
}

/* TOOGLES */
.panel-heading-common {
    background-color: #f5f5f5;
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    margin-bottom: 0;
}
.panel-heading-common th {
    text-align: center;
}

/* Στυλ για mobile-friendly tables */
.table-responsive > .table {
    margin-bottom: 0; /* Remove default table margin inside responsive div */
}

/* Βελτιωμένο CSS για ευθυγράμμιση κειμένου στους πίνακες */
.table th,
.table td {
    vertical-align: middle;
    padding: 8px; /* Standardize padding */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ευθυγράμμιση της πρώτης στήλης (Features) αριστερά */
.table th:first-child,
.table td:first-child {
    text-align: left;
}

/* Ευθυγράμμιση των υπολοίπων στηλών (Base, Pro, Gold) στο κέντρο */
.table th:not(:first-child),
.table td:not(:first-child) {
    text-align: center;
}

#features-list li {
    font-size: 13px;
}

/* Ensure tables fill their container and columns are fixed */
.panel-body .table,
.panel-heading-common .table {
    table-layout: fixed; /* Ensures columns maintain specified width */
    width: 100%; /* Ensure table takes full width of its container */
}

.panel-group .panel {
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,.05);
}

.panel-default>.panel-heading-toogle {
    background-color: #f5f5f5;
    border-color: #f5f5f5;
    padding: 15px;
}

.panel-heading-common-toogle {
    background-color: #FFF;
    padding: 10px 15px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    margin-bottom: 0;
}
.panel-title {
    font-size: 15px;
}

.panel-title .pull-right a {
    font-size: 0.85em; /* Μικρότερο μέγεθος για τα links */
    margin-left: 5px;
    margin-right: 5px;
    color: #337ab7; /* Bootstrap link color */
    text-decoration: none;
}
.panel-title .pull-right a:hover {
    text-decoration: underline;
}
.panel-title .pull-right {
    font-size: 0.9em; /* Ελαφρώς μικρότερο μέγεθος για το συνολικό span */
    line-height: 1.42857143; /* Για ευθυγράμμιση με τον τίτλο */
    display: inline-block; /* Για να επιτρέψει το padding-top */
}
