* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Phetsarath", sans-serif;
    background: linear-gradient(135deg, #0d61b5 0%, #362c2c 100%);
    min-height: 100vh;
    padding: 20px;
    font-weight: 400;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #ffffff 0%, #3abc41 100%);
    color: white;
    padding: 20px ;
    text-align: center;
}

.header h2 {
    font-size: 2.0em;
    margin-bottom: 10px;
    color: #000000;
    text-shadow: 2px 2px 4px rgba(62, 60, 60, 0.3);
}

.header img {
    margin-top: 5px;
    width: 300px;
    height: auto;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
    color: #000000;
}

.photo-preview-container {
            text-align: center;
            margin: 20px 0;
        }
        .photo-preview {
            display: inline-block;
            width: 150px;
            height: 150px;
            border: 3px dashed #ccc;
            border-radius: 10px;
            overflow: hidden;
            position: relative;
            cursor: pointer; 
        }
        .photo-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        } 
        .photo-preview p {
            margin: 10px 0 0;
            color: #666;
            font-size: 14px;
        }

.form-container {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

option {
    font-family: "Phetsarath", sans-serif;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #f9f9f9;
} 

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1eb108;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    left: -9999px;
}

.file-upload-label {
    display: block;
    padding: 12px 15px;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    background: #e0e0e0;
    border-color: #f8f8f8;
}

.required {
    color: #e74c3c;
}

.button-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.submit-btn {
    font-family: "Phetsarath", sans-serif;
    background: linear-gradient(135deg, #4dc970 0%, #04880f 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 250px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.logout-btn {
    font-family: "Phetsarath", sans-serif;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
    text-decoration: none;
    color: white;
}

/* ສຳລັບໂທລະສັບ */
@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
    }
    
    .submit-btn,
    .logout-btn {
        width: 100%;
        min-width: auto;
    }
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .container {
        margin: 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
}





