* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #b09f5d;
}

header h1 {
    color: #b09f5d;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #b09f5d;
    color: #000000;
}

.btn-primary:hover {
    background-color: #c4b373;
}

.btn-secondary {
    background-color: #333333;
    color: #ffffff;
    border: 1px solid #b09f5d;
}

.btn-secondary:hover {
    background-color: #444444;
}

.btn-danger {
    background-color: #dc3545;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #c82333;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #111111;
    margin: 5% auto;
    padding: 30px;
    border: 2px solid #b09f5d;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h2 {
    color: #b09f5d;
    margin-bottom: 20px;
    font-weight: 600;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #b09f5d;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #333333;
    border-radius: 5px;
    background-color: #222222;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: #b09f5d;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #444444;
    border: 2px solid #b09f5d;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #b09f5d;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-weight: bold;
    font-size: 14px;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

#signatureCanvas {
    border: 2px solid #b09f5d;
    border-radius: 5px;
    background-color: #444444;
    cursor: crosshair;
    display: block;
    margin: 10px 0;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

#searchInput {
    width: 100%;
    padding: 12px;
    border: 1px solid #333333;
    border-radius: 5px;
    background-color: #222222;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
}

#searchInput:focus {
    outline: none;
    border-color: #b09f5d;
}

#searchResults {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.search-result {
    background-color: #222222;
    border: 1px solid #333333;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.search-result:hover {
    border-color: #b09f5d;
    background-color: #333333;
}

.search-result-content {
    flex: 1;
}

.search-result h3 {
    color: #b09f5d;
    margin-bottom: 5px;
}

.search-result p {
    margin-bottom: 3px;
    color: #cccccc;
}

.delete-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 3px;
    transition: all 0.3s ease;
    margin-left: 10px;
    flex-shrink: 0;
}

.delete-btn:hover {
    background-color: #dc3545;
    color: #ffffff;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-form {
    background-color: #111111;
    padding: 40px;
    border: 2px solid #b09f5d;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
}

.login-form h1 {
    color: #b09f5d;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

.error {
    background-color: #dc3545;
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 95%;
        padding: 20px;
    }
    
    #signatureCanvas {
        width: 100%;
        max-width: 350px;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

.form-note {
    color: #888888;
    font-size: 12px;
    line-height: 1.4;
    margin: 8px 0;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background-color: #28a745;
    border-left: 4px solid #1e7e34;
}

.notification.error {
    background-color: #dc3545;
    border-left: 4px solid #c82333;
}

.notification.info {
    background-color: #b09f5d;
    border-left: 4px solid #9a8a50;
    color: #000000;
}