:root {
    --primary-color: #007AFF;
    --secondary-color: #34C759;
    --background-color: #F2F2F7;
    --card-background: #FFFFFF;
    --text-color: #000000;
    --secondary-text-color: #3C3C43;
    --border-color: #E5E5EA;
    --accent-color: #007AFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card-background);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.info {
    font-size: 16px;
    color: var(--secondary-text-color);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-text-color);
}

input[type="text"], input[type="datetime-local"], input[type="number"], textarea, select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--background-color);
    box-sizing: border-box;
}

.datetime-container {
    display: flex;
    gap: 10px;
}

.datetime-container input[type="datetime-local"] {
    flex-grow: 1;
}

.datetime-container select {
    width: auto;
}

textarea {
    height: 100px;
    resize: vertical;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

.toggle-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.toggle-label {
    flex-grow: 1;
    font-size: 14px;
    color: var(--secondary-text-color);
}

.toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 32px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--secondary-color);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

#linkSection {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.secondary-button {
    background-color: var(--background-color);
    color: var(--primary-color);
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.secondary-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.icon-button {
    background-color: var(--background-color);
    color: var(--primary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.icon-button svg {
    width: 24px;
    height: 24px;
}

.dropdown-content {
    position: absolute;
    background-color: var(--card-background);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 10px;
    overflow: hidden;
}

.dropdown-content button {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 16px;
}

.dropdown-content button:hover {
    background-color: var(--background-color);
}

.participant-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.participant {
    flex-grow: 1;
    padding-right: 40px; /* Make room for the remove button */
}

.remove-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #FF3B30; /* iOS red color */
    color: white;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.remove-btn:hover {
    opacity: 0.8;
}

.add-participant-btn {
    background-color: transparent;
    color: var(--primary-color);
    text-align: left;
    padding: 12px 0;
    font-size: 17px;
    font-weight: normal;
    margin-top: 10px;
}

/* Hide remove button when there's only one participant */
.participant-row:only-child .remove-btn {
    display: none;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.share-button svg {
    width: 20px;
    height: 20px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-background);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-content button {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.dropdown-content button:hover {
    background-color: var(--background-color);
}

#meetingCard {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card-background);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#meetingCard h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

#meetingCard p {
    font-size: 16px;
    margin-bottom: 10px;
}

.meeting-card-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.primary-button, .secondary-button {
    font-size: 16px;
    font-weight: 400;
    padding: 15px 15px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.secondary-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 15px;
}

.main-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

#joinFaceTimeButton, #createNewMeetingButton {
    flex: 1;
    max-width: 200px;
}

/* Update the existing styles for select elements */
select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--background-color);
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000000' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Add styles for select focus state */
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}