@import './variables.css';
@import './layout.css';
@import './components.css';

.login-form {
    width: 35%;
    place-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    padding: .5rem;
}

.logo-form {
    width: 18rem;
    height: 18rem;
    margin: 0;
}

.login-form input {
    margin: .5rem 0;
}

.login-form .btn-login {
    width: 100%;
    font-weight: 600;
    background-color: var(--primary);
    border-color: var(--bg-light);
    color: var(--bg-light);
}

.login-form-title {
    font-weight: 800;
}

.login-form-subtitle {
    font-weight: 600;
}

.login-form p {
    width: 100%;
    justify-self: center;
    text-align: center;
}

@media (max-width: 768px) {
    .login-form {
        width: 100%;
    }
}

.cards-section {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.admin-card {
    border: 2px solid var(--primary);
    background-color: #FFF;
    width: 18rem;
    height: 12rem;
    margin: 1rem 0;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    text-decoration: none;
    transition: ease-in-out .2s;
}

.admin-card:hover {
    background-color: var(--primary);
    transition: ease-in-out .2s;
    scale: 1.1;
    cursor: pointer;
}

.admin-card-img {
    width: 100%;
    height: 100%;
}

.stats-section {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 1.5rem;
}

.stats-widget {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    border: 1px solid #E5E7EB;
}

.widget-header {
    background: var(--primary);
    color: white;
    padding: .75rem 1rem;
    text-align: center;
}

.widget-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.widget-body {
    padding: 1rem;
}

/* Trabajos */
.work-item {
    background: #F8FAFC;
    border-left: 4px solid var(--primary);
    padding: .75rem;
    border-radius: 8px;
    margin-bottom: .75rem;
}

.badge-date {
    display: inline-block;
    font-size: .75rem;
    color: #6B7280;
    margin-bottom: .25rem;
}

/* Ranking */
.ranking-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .9rem;
}

.ranking-pos {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #E0E7FF;
    color: var(--primary);
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ranking-item small {
    display: block;
    color: #6B7280;
}

/* Materiales */
.material-item {
    margin-bottom: 1rem;
}

.material-icon {
    width: 25px;
    height: 25px;
}

.progress {
    height: 8px;
    background: #E5E7EB;
}

.progress-bar {
    background: var(--primary);
}

.btns-section {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.btns-section a {
    background-color: var(--primary);
    border-radius: 10px;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btns-section a img {
    width: 2.5rem;
}

.btns-section a:hover {
    scale: 1.1;
    transition: ease .2s;
    background-color: var(--primary-hover);
}

.btn-warning {
    background-color: var(--secondary);
}

.btn-warning:hover {
    background-color: #dd8d1d;
}

.work-detail {
    max-width: 1100px;
    margin: auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.detail-card {
    background: #FFF;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.detail-card h5 {
    color: var(--primary);
    margin-bottom: .75rem;
    font-weight: 700;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.info-item span {
    display: block;
    font-size: .85rem;
    color: #6B7280;
    margin-bottom: .25rem;
}

.info-item strong {
    font-size: 1rem;
    color: #111827;
}

.detail-card p {
    margin: 0;
    line-height: 1.6;
    color: #374151;
}

.back-btn {
    background-color: var(--primary);
    color: #FFF;
    padding: .5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
}

.back-btn:hover {
    background-color: var(--primary-hover);
    color: #FFF;
}

#pdf-icon {
    width: 1.2em;
    height: 1.2em;
}

.pdf-button {
    background-color: var(--bg-gray);
    border-radius: 8px;
    padding: 8px;
    text-decoration: none;
    color: var(--text-gray);
    font-weight: bold;
    display: flex;
    align-items: center;
}