/* General page styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #333;
    color: #333;
}

/* Header styling */
header {
    background-color: #333;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Footer styling */
footer {
    background-color: #333;
    color: white;
    align-items: center;
    text-align: center;
}

.logo img {
    height: 40px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    background-color: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: #e63946;
    color: white;
}

/* Responsive navbar */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    background-color: white;
    height: 3px;
    width: 25px;
    margin: 4px 0;
}


/* Main content styling */
main {
    padding: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

h3 {
    color: #000000;
    margin-bottom: 5px;
    font-weight: 600;
    text-align: center;
}

/* Ads Styling */
.ads {
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Form styling */
.user-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #444;
}

input, select, textarea {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fcfcfc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    border-color: #e63946;
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
    outline: none;
}

/* General button styling */
button.submit-btn {
    padding: 12px 20px;
    font-size: 16px;
    background-color: #e63946;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

button.submit-btn:hover {
    background-color: #c1121f;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

button.modal-submit-btn {
    padding: 12px 20px;
    font-size: 16px;
    background-color: #e63946;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0 auto;
    display: block;
}

button.modal-submit-btn:hover {
    background-color: #c1121f;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Tab-specific styling */
.tab {
    display: flex;
    width: 100%;
    max-width: 800px;
    margin: 30px auto 0;
    border-bottom: 1px solid #ddd;
    background-color: transparent;
    padding: 0;
}

/* Tab button styling - renamed class to avoid conflicts */
.tablinks {
    background-color: #f8f8f8;
    color: #666;
    border: 1px solid #ddd;
    border-bottom: none;
    padding: 12px 24px;
    margin-right: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px 4px 0 0;
    font-weight: 500;
    position: relative;
    bottom: -1px;
}

.tablinks.active {
    background-color: white;
    color: #e63946;
    border-bottom: 1px solid white;
    font-weight: 600;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}

.tablinks:hover {
    background-color: #fff;
    color: #333;
}

.tabcontent {
    display: none;
    padding: 25px;
    border: 1px solid #ddd;
    border-top: none;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 0 auto;
    max-width: 800px;
    border-radius: 0 0 4px 4px;
}

#Items {
    display: block;
}

.tabcontent form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tabcontent .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.tabcontent label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.tabcontent input {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fcfcfc;
}

.tabcontent input:focus {
    border-color: #e63946;
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
    outline: none;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.button-row .submit-btn {
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
    flex: 0 0 auto;
}

/* Step visibility fix */
.step {
    display: none;
}

.step.active {
    display: block !important;
}

/* Requested Item Card */
.item-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 15px; /* was 20px */
    margin-bottom: 15px; /* was 25px */
}

.item-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px; /* was 10px */
    margin-bottom: 8px; /* was 10px */
}

.item-qty-status {
    font-weight: bold;
    color: #e63946;
}

.item-qty-status .complete {
    color: green;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 10px; /* was 15px */
    margin-top: 8px; /* was 10px */
}

.signup-form .form-group {
    margin-bottom: 10px;
}


.signup-form label {
    font-weight: 500;
    margin-bottom: 6px;
    color: #444;
}

.signup-form input,
.signup-form select {
    padding: 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Toggle Signups Button */
.toggle-signups-btn {
    background: none;
    border: none;
    color: #0056b3;
    font-size: 14px;
    padding: 6px 0; /* slightly smaller */
    text-align: left;
    cursor: pointer;
    margin-top: 8px;
}

.toggle-signups-btn:hover {
    text-decoration: underline;
}

/* Accordion for Signups */
.signups-accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f9f9f9;
    padding: 0 12px; /* was 0 15px */
    border-left: 3px solid #eee;
    margin-top: 5px;
    border-radius: 4px;
}

.signups-accordion.open {
    max-height: 500px; /* more space for long lists */
    padding: 8px 12px; /* was 10px 15px */
}

.signups-accordion ul {
    margin: 0;
    padding-left: 18px;
}

.signups-accordion li {
    margin-bottom: 5px;
    font-size: 14px;
}

/* Compact inline quantity control */
.inline-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.inline-qty select {
    width: auto;
    min-width: 60px;
    padding: 6px 10px;
    font-size: 14px;
    max-width: none;
    flex: 0 0 auto;
}

/* Floating global signup button */
.floating-signup-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #e63946;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.floating-signup-btn:hover {
    background-color: #c1121f;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal.show {
  display: block;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 95%;
  max-width: 400px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.modal-content .close {
  float: right;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

/* Clean summary list styling for cistepsumm.php */
.event-summary h2 {
    font-size: 1.2em;
    margin-bottom: 0.3em;
    padding-bottom: 0.3em;
    font-weight: 600;
    color: #000000;
}

.event-summary .summary-block {
    margin-bottom: 2em;
}

.event-summary .entry {
    margin-bottom: 1.5em;
    line-height: 1.6;
}

.event-summary .entry strong {
    font-size: 1.05em;
    display: block;
    margin-bottom: 0.25em;
    color: #111;
}

.event-summary .entry em {
    display: block;
    color: #555;
    margin-bottom: 0.25em;
}

.event-summary .entry a {
    display: inline-block;
    margin-top: 0.3em;
    color: #0056b3;
    font-size: 0.95em;
}

.event-summary .entry a:hover {
    text-decoration: underline;
}

.event-summary .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
    border-bottom: 2px solid #ccc;
}

.delete-item {
	background: none;
	border: none;
	color: red;
	font-size: 1.2em;
	cursor: pointer;
	margin-left: 10px;
}

.delete-volunteer {
	background: none;
	border: none;
	color: red;
	font-size: 1.2em;
	cursor: pointer;
	margin-left: 10px;
}

.copyButton img {
  width: 20px; /* Adjust icon size */
  height: 20px;
}

.step-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.step-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #444;
    white-space: nowrap;
}

.step-checkbox input[type="checkbox"] {
    flex: 0 0 auto;
    width: auto;
}

/* Additional responsive styles */
/* Better mobile/tablet scaling */
@media (max-width: 1000px) {
    .user-form {
        width: 95%;
	/*max-width: none;  /* ← THIS is the key */
        padding: 20px;
    }

}
@media (min-width: 1000px) {
    .form-group {
        flex-direction: row;
        align-items: center;
    }

    .form-group label {
        min-width: 150px;
        margin-bottom: 0;
        margin-right: 15px;
        text-align: right;
    }

    .form-group input, 
    .form-group select, 
    .form-group textarea {
        flex: 1;
    }
    .step-options-group {
        display: flex;
        align-items: flex-start;
    }

    .step-options-group > label {
        min-width: 150px;
        margin-right: 15px;
        text-align: right;
        padding-top: 5px;
    }

    .step-options {
        flex: 1;
    }

    .button-row {
        flex-wrap: nowrap;
    }
}

@media (max-width: 1000px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #333;
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        z-index: 100;
    }

    nav ul li {
        margin: 10px 20px;
    }

    nav ul li a {
        display: block;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    nav ul.active {
        display: flex;
    }

    .tab {
        flex-direction: column;
        gap: 5px;
    }

    .tablinks {
        border-radius: 4px;
        margin-right: 0;
        border: 1px solid #ddd;
    }

    .tablinks.active {
        border-bottom: 1px solid #ddd;
        box-shadow: 0 0 5px rgba(230, 57, 70, 0.3);
    }

    .tabcontent {
        border-radius: 4px;
        border: 1px solid #ddd;
    }
    body {
        font-size: 20px;
    }
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        font-size: 20px;
     }

}

@media (max-width: 600px) {
    .user-form {
        width: 95%;
        padding: 20px;
    }
}
@media (max-width: 400px) {
    .user-form {
        padding: 15px;
    }
}
