/* Your existing CSS styles here */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

h1, h2 {
    color: #4a2c0d;
    text-align: center;
}

img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 200px;
}

h2 {
    margin-top: 0;
    border-bottom: 2px solid #d4a76a;
    padding-bottom: 10px;
}

.header-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.header-info input {
    border: none;
    border-bottom: 1px solid #d4a76a;
    padding: 5px;
    font-size: 16px;
    width: 200px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 5px;
}

th, td {
    border: 1px solid #d4a76a;
    padding: 10px;
    text-align: center;
}

th {
    background-color: #f5e9d9;
}

.samples {
    margin: 30px 0;
}

.sample-item {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
}

.sample-item label {
    min-width: 80px;
    font-weight: bold;
}

.sample-item input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #d4a76a;
    border-radius: 4px;
}

.notes-section {
    margin-top: 30px;
}

.notes-columns {
    display: flex;
    gap: 30px;
}

.notes-column {
    flex: 1;
}

.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-item {
    margin-bottom: 8px;
}

.scoring-inputs {
    margin-top: 20px;
}

.scoring-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.scoring-row label {
    font-weight: bold;
}

.scoring-row input {
    width: 60px;
    padding: 5px;
    border: 1px solid #d4a76a;
    border-radius: 4px;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 1px solid #d4a76a;
    border-radius: 4px;
    margin-top: 20px;
    resize: vertical;
}

button {
    background-color: #4a2c0d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    display: block;
    margin-left: auto;
}

button:hover {
    background-color: #5d3a15;
}

.hidden {
    display: none;
}

#successMessage {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}

/* Added styles for the range inputs */
.attributes-section{
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    position: absolute;
}

.range-container {
    margin: 20px 0;
    position: relative;
}
.range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.score-box {
    width: 60px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f8f8f8;
    font-weight: bold;
}
.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
}
.range-labels span {
    display: inline-block;
    width: 30px;
    text-align: center;
}
input[type="range"] {
    width: 100%;
}
.vertical-range {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vertical-range input[type="range"] {
    width: 30px;
    height: 150px;
    writing-mode: bt-lr; /* IE */
    appearance: slider-vertical; /* WebKit */
}
.vertical-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 150px;
    font-size: 12px;
}
.attributes-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.fragrance-sub-attributes {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    align-items: center;
}
.sub-attribute {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sub-attribute label {
    font-weight: bold;
    margin-bottom: 5px;
}
.qualities-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 0 30px;
}
.qualities-container label {
    font-weight: bold;
    font-size: 14px;
}
.small-input {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Added styles for intensity range */
.intensity-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.intensity-label {
    font-weight: bold;
}
.intensity-range {
    display: flex;
    align-items: center;
    gap: 5px;
}
.intensity-range input[type="range"] {
    width: 30px;
    height: 150px;
    writing-mode: bt-lr;
    appearance: slider-vertical;
}
.intensity-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 150px;
    font-size: 12px;
}
.intensity-value {
    width: 30px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f8f8f8;
    font-weight: bold;
}

/* Added styles for level range (similar to intensity) */
.level-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.level-label {
    font-weight: bold;
}
.level-range {
    display: flex;
    align-items: center;
    gap: 5px;
}
.level-range input[type="range"] {
    width: 30px;
    height: 150px;
    writing-mode: bt-lr;
    appearance: slider-vertical;
}
.level-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 150px;
    font-size: 12px;
}
.level-value {
    width: 30px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f8f8f8;
    font-weight: bold;
}

/* Styles for radio button groups */
.radio-group {
    display: flex;
    gap: 100px;
    margin-top: 10px;
}
.radio-option {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.radio-option input[type="radio"] {
    margin: 5px 0;
}

/* Styles for attribute notes */
.attribute-notes {
    margin-top: 10px;
}
.attribute-notes input {
    width: 100%;
    padding: 5px;
    border: 1px solid #d4a76a;
    border-radius: 4px;
    font-size: 14px;
}
    
/* Dropdown styles */
.dropdown {
    margin: 20px 0;
    border: 1px solid #d4a76a;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-header {
    background-color: #f5e9d9;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.dropdown-header:hover {
    background-color: #e8d9c1;
}

.dropdown-content {
    padding: 5%;
    background-color: white;
}

.dropdown-arrow {
    transition: transform 0.3s;
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

/* Modal Styling */
.warning-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(212, 168, 106, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 1000;
  }
  
  .warning-modal button {
    margin-top: 10px;
    padding: 5px 10px;
    border: none;
    background: red;
    color: white;
    cursor: pointer;
    border-radius: 5px;
  }

  /* Style the button */
#scrollToTopBtn {
    position: fixed;
    bottom: 100px;
    right: 15px;
    z-index: 100;
    display: none;
    background-color: #d4a76a;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 10px 17px;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  #scrollToTopBtn:hover {
    background-color: #0056b3;
  }
  

/* Extra Small (XS) - Mobile devices (portrait) */
@media (max-width: 575px) {
    body {
        padding: 10px;
        }
            
    h2 {
        font-size: 1.3rem;
    }
            
    h3 {
        font-size: 1.1rem;
    }
            
    h4 {
        font-size: 1rem;
    }

    table {
        margin: 20px 5px;
    }

    .fragrance-sub-attributes {
        gap: 0;
    }

    .qualities-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0 5px;
    }

    th, td {
        font-size: 10px;
    }

    .header-info {
        flex-direction: column;
        gap: 10px;
        padding-top: 10px;
    }
    
    .header-field {
        width: 100%;
        min-width: 100%;
    }
    
    .header-field input {
        padding: 7px 10px;
        font-size: 0.9rem;
    }
            
    .dropdown-header {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .dropdown-content {
        padding-right: 10%;
        background-color: white;
    }

    .radio-group {
        display: flex;
        gap: 50px;
        margin-top: 10px;
    }
            
    .score-box {
        width: 50px;
        font-size: 0.8rem;
    }
            
    .range-labels span {
        display: none;
    }
            
    .range-labels span:nth-child(4n+1) {
        display: inline-block;
    }
            
    input[type="range"][orient="vertical"] {
        width: 25px;
        height: 120px;
    }
            
    .vertical-labels {
        height: 120px;
        font-size: 0.6rem;
    }
            
    .intensity-container, .level-container {
        flex-direction: column;
        align-items: flex-start;
    }
            
    button {
        width: 100%;
        padding: 15px;
    }

    #scrollToTopBtn {
        height: 50px;
        width: 50px;
        padding: 0px 10px 10px 10px;
        font-size: 30px;
      }
}
