@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
}

.container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

h1, h2, h3, h4, h5, h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    color: #4a4a4a;
}

h2 {
    font-size: 2rem;
    color: #5a5a5a;
}

/* Formulários */
form {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

form .form-control, 
form .form-select {
    margin-bottom: 20px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

form .form-control:focus, 
form .form-select:focus {
    border-color: #888;
    outline: none;
    box-shadow: 0 0 0 3px rgba(136, 136, 136, 0.1);
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

form input[type="file"] {
    padding: 8px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    width: 100%;
}

/* Botões */
.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(235, 51, 73, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

/* Menu */
.d-grid {
    gap: 15px;
}

.d-grid .btn {
    padding: 15px 25px;
    font-size: 1.1rem;
    text-align: left;
    border-radius: 10px;
}

/* Cards e Containers */
.bg-light {
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%) !important;
    min-height: 100vh;
    padding: 20px 0;
}

/* Mensagens */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 500;
}

.alert-danger {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background-color: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* Inputs e Selects */
.form-control:read-only {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Detalhes do Certificado */
#detalhesCertificado {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid #888;
}

#detalhesCertificado h4 {
    color: #5a5a5a;
    margin-bottom: 20px;
}

#detalhesCertificado p {
    margin-bottom: 15px;
    font-size: 1rem;
}

#detalhesCertificado strong {
    color: #333;
    font-weight: 600;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        margin: 15px;
        padding: 20px;
    }
    
    form {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .d-grid {
        gap: 10px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container, form {
    animation: fadeIn 0.5s ease-in;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #888 0%, #666 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #666 0%, #888 100%);
}
