:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-bg: #ecf0f1;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    color: #333;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><path fill="rgba(52, 152, 219, 0.05)" d="M0 0 L100 100 M20 0 L100 80 M0 20 L80 100 M40 0 L100 60 M0 40 L60 100 M60 0 L100 40 M0 60 L40 100 M80 0 L100 20 M0 80 L20 100"/></svg>');
    z-index: -1;
}

.container {
    max-width: 900px;
    margin: 40px auto;
}

.form-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.form-header {
    background: var(--primary-color);
    color: white;
    padding: 30px;
    position: relative;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.8), rgba(231, 76, 60, 0.8));
}

.form-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-header p {
    opacity: 0.8;
    margin-bottom: 0;
}

.form-body {
    padding: 30px;
}

.section-title {
    color: var(--primary-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
    margin: 30px 0 20px;
    font-weight: 600;
}

.form-label {
    font-weight: 500;
    color: #555;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.experience-item, .certificate-item {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.btn-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 14px;
    color: var(--accent-color);
    background: none;
    border: none;
    cursor: pointer;
}

.btn-add {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add:hover {
    background-color: #2980b9;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-submit:hover {
    background-color: #1a2530;
}

.invalid-feedback {
    color: var(--accent-color);
    font-size: 14px;
}

.is-invalid {
    border-color: var(--accent-color) !important;
}

.belediye-logo {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
}

.file-upload input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}

.file-upload-label {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-label:hover {
    background-color: #2980b9;
}

.file-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.file-list li {
    background-color: var(--light-bg);
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-list li span {
    max-width: 85%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-list button {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
}

@media (max-width: 768px) {
    .container {
        margin: 20px auto;
    }

    .form-body {
        padding: 20px;
    }

    .belediye-logo {
        width: 60px;
        height: 60px;
        top: 15px;
        right: 20px;
    }
}
