@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

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

:root {
    --primary: #1E7D84;
    --primary-hover: #18666b;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --secondary: #6b7280;
    --dark: #1E2143;
    --light: #E9E8F1;
    --white: #ffffff;
    --border: #e5e7eb;
    --accent: #FFCAB8;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--dark);
    background: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.header {
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.logo span {
    color: var(--dark);
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
}

.mobile-menu {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 15px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav a {
    padding: 10px;
    border-radius: 6px;
}

.mobile-nav a:hover {
    background: var(--light);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #047857;
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--light);
}

.btn-outline.btn-danger {
    color: var(--danger);
    border-color: var(--danger);
}

.btn-outline.btn-danger:hover {
    background: #fef2f2;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.main {
    flex: 1;
    padding: 30px 30px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.page-header p {
    color: var(--secondary);
}

.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.card-header h1,
.card-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.card-header p {
    color: var(--secondary);
    margin-top: 5px;
}

.card-body {
    padding: 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.form {
    padding: 20px;
}

.form h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.form h3:first-child {
    margin-top: 0;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 125, 132, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: var(--secondary);
    font-size: 12px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: normal;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-md-4,
.col-md-6,
.col-md-8 {
    padding: 0 10px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
}

.col-md-6 {
    flex: 0 0 50%;
}

.col-md-8 {
    flex: 0 0 66.666667%;
}

@media (max-width: 768px) {

    .col-md-4,
    .col-md-6,
    .col-md-8 {
        flex: 0 0 100%;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    display: block;
}

.stat-label {
    color: var(--secondary);
    font-size: 13px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary {
    background: var(--primary);
    color: var(--white);
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-secondary {
    background: #e5e7eb;
    color: #374151;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-weight: 600;
    color: var(--secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #fafafa;
}

.table tr:hover {
    background: #fafafa;
}

.table td {
    font-size: 14px;
}

.actions {
    display: flex;
    gap: 8px;
}

.list-group {
    display: flex;
    flex-direction: column;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.list-item:last-child {
    border-bottom: none;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--secondary);
}

.tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.tab {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary);
    transition: all 0.2s;
}

.tab:hover {
    background: var(--light);
    color: var(--dark);
    text-decoration: none;
}

.tab.active {
    background: var(--primary);
    color: var(--white);
}

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 20px;
}

.auth-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--primary);
}

.auth-header p {
    color: var(--secondary);
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    color: var(--secondary);
    font-size: 13px;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.hero .btn-primary:hover {
    background: #f0f0f0;
}

.hero .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.features {
    padding: 80px 0;
}

.features h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--secondary);
    font-size: 14px;
}

.footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    color: var(--secondary);
    font-size: 13px;
    margin-top: auto;
}

.vagas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.vaga-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.vaga-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.vaga-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.vaga-info {
    margin-bottom: 15px;
}

.vaga-info p {
    margin-bottom: 5px;
    font-size: 14px;
}

.vaga-info strong {
    color: var(--secondary);
    font-weight: 500;
}

.vaga-details {
    margin-bottom: 20px;
}

.vaga-details details {
    margin-bottom: 8px;
}

.vaga-details summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--dark);
    font-size: 14px;
}

.vaga-details summary:hover {
    color: var(--primary);
}

.vaga-details p {
    margin-top: 5px;
    padding: 10px;
    background: var(--light);
    border-radius: 6px;
    font-size: 13px;
    color: var(--secondary);
}

.vaga-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item label {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span,
.detail-item a {
    font-size: 14px;
    color: var(--dark);
}

.experience-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.experience-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
}

.experience-item p {
    font-size: 14px;
    margin: 0;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--secondary);
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu.active {
        display: block;
    }

    .header-content {
        position: relative;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vagas-grid {
        grid-template-columns: 1fr;
    }

    .table {
        display: block;
        overflow-x: auto;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}