/* Base Styles */
html, body {
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Custom Button Styles */
.custom-btn {
  background-color: grey;
  color: white;
  font-size: 11px;
  font-family: sans-serif;
  border: none;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.custom-btn .arrow {
  margin-left: 5px;
  color: #FF4500;
  font-weight: bold;
}

.custom-btn:hover {
  background-color: white;
  color: black;
}

.custom-btn:hover .arrow {
  color: black;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 0;
    border: 1px solid #999999;
    width: 450px;
    max-width: 90%;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-family: tahoma;
    font-size: 12px;
}

.modal-header {
    padding: 15px 20px;
    background-color: #ECECEC;
    border-bottom: 1px solid #cccccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #666666;
}

.close {
    color: #666666;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #FF0000;
}

.modal-body {
    padding: 20px;
}

.modal-form-group {
    margin-bottom: 15px;
}

.modal-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #666666;
    font-size: 11px;
}

.modal-form-group input[type="text"],
.modal-form-group input[type="password"] {
    width: 100%;
    padding: 5px;
    border: 1px solid #cccccc;
    background-color: #E0E0E0;
    color: #555555;
    font-size: 11px;
    font-family: Verdana;
    box-sizing: border-box;
    height: 22px;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    padding-right: 32px; /* 공간 확보 */
}

.password-input-wrapper .toggle-password {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.password-input-wrapper .toggle-password:focus {
    outline: none;
}

.modal-error-message {
    color: #FF0000;
    font-size: 11px;
    margin-top: 3px;
    display: none;
}

.modal-result-message {
    display: none;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    font-size: 11px;
}

.modal-buttons {
    text-align: center;
    margin-top: 20px;
}

.modal-btn {
    background-color: #996666;
    color: white;
    padding: 5px 15px;
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-family: tahoma;
    margin: 0 5px;
    border-radius: 3px;
}

.modal-btn:hover {
    background-color: #FF0000;
}

.modal-btn-secondary {
    background-color: #666666;
}

.modal-btn-secondary:hover {
    background-color: #000000;
}

/* Password Rules */
.password-rules {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    font-size: 11px;
}

.password-rules h4 {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #495057;
    font-weight: bold;
}

.rule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rule-item {
    display: flex;
    align-items: center;
    margin: 4px 0;
    font-size: 11px;
    color: #6c757d;
}

