.threadpassword-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.threadpassword-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    overflow: hidden;
}

.threadpassword-header {
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    color: white;
    padding: 20px;
    text-align: center;
}

.threadpassword-header i {
    font-size: 48px;
    margin-bottom: 10px;
}

.threadpassword-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.threadpassword-body {
    padding: 25px;
}

.threadpassword-info {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.threadpassword-input-group {
    margin-bottom: 15px;
}

.threadpassword-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.threadpassword-input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.threadpassword-input-group input:focus {
    border-color: #ff6b35;
    outline: none;
}

.threadpassword-error {
    background: #ffebee;
    border: 1px solid #ef5350;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.threadpassword-success {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.threadpassword-actions {
    text-align: center;
    margin-top: 15px;
}

.threadpassword-actions button {
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

.threadpassword-actions button:hover {
    background: linear-gradient(135deg, #ff5722, #ff7043);
}

.threadpassword-forgot {
    text-align: center;
    margin-top: 15px;
}

.threadpassword-forgot a {
    color: #ff6b35;
    text-decoration: none;
    font-size: 14px;
}

.threadpassword-forgot a:hover {
    text-decoration: underline;
}

.threadpassword-usercp {
    padding: 20px;
}

.threadpassword-info-box {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
}

.threadpassword-stat {
    font-size: 16px;
}

.threadpassword-locked-icon {
    color: #ff6b35;
    margin-right: 5px;
}

.threadpassword-input-container {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.threadpassword-input-container h3 {
    margin-top: 0;
    color: #ff6b35;
}

.form_row {
    margin-bottom: 15px;
}

.form_row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form_row input[type="password"],
.form_row input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form_row input:focus {
    border-color: #ff6b35;
    outline: none;
}

.small_text {
    font-size: 12px;
    color: #666;
}

.threadpassword-locked-notice {
    padding: 40px;
    text-align: center;
    color: #666;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    margin: 20px 0;
    border-radius: 4px;
}
