602 lines
12 KiB
CSS
602 lines
12 KiB
CSS
@import "https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;500;600;700;800;900&display=swap";
|
|
@import "https://fonts.googleapis.com/css2?family=Rajdhani:wght@500&display=swap";
|
|
|
|
:root {
|
|
--d: 5000ms;
|
|
--angle: 90deg;
|
|
--gradX: 100%;
|
|
--gradY: 50%;
|
|
--c1: rgba(0, 163, 255, 1);
|
|
--c2: transparent;
|
|
--primary-color: #00a3ff;
|
|
--secondary-gradient: linear-gradient(180deg, #34445200 0%, #2d2d2d 100%);
|
|
--border-color: #0190e1;
|
|
--panel-bg: radial-gradient(
|
|
120.05% 120.05% at 50.14% -58.24%,
|
|
rgba(69, 100, 129, 0) 0%,
|
|
#0e151b 100%
|
|
);
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
font-family: "Poppins", sans-serif;
|
|
background: transparent;
|
|
color: #fff;
|
|
}
|
|
|
|
.admin-giveitem-container {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 9999;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.admin-giveitem-modal {
|
|
position: relative;
|
|
width: 90%;
|
|
max-width: 1400px;
|
|
max-height: 100vh;
|
|
background: var(--panel-bg);
|
|
border-radius: 20px;
|
|
border: 1px solid rgba(1, 144, 225, 0.35);
|
|
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
|
|
overflow: hidden;
|
|
transform: scale(0.9) translateY(50px);
|
|
opacity: 0;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
|
|
}
|
|
|
|
.admin-giveitem-modal.open {
|
|
transform: scale(1) translateY(0);
|
|
opacity: 1;
|
|
}
|
|
|
|
.admin-giveitem-header {
|
|
background: linear-gradient(135deg, var(--primary-color) 0%, #0e151b 100%);
|
|
padding: 20px 30px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
border-bottom: 2px solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.admin-giveitem-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
color: #fff;
|
|
}
|
|
|
|
.admin-giveitem-title i {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.admin-giveitem-title h2 {
|
|
margin: 0;
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
text-shadow: 0 0 5px rgba(255, 255, 255, 0.35);
|
|
letter-spacing: 0.3px;
|
|
}
|
|
|
|
.admin-giveitem-close {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border: 1px solid rgba(255, 255, 255, 0.18);
|
|
color: #fff;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
display: grid;
|
|
place-items: center;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.admin-giveitem-close:hover {
|
|
background: var(--primary-color);
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 20px rgba(0, 163, 255, 0.35);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.admin-giveitem-content {
|
|
padding: 30px;
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
grid-template-rows: auto;
|
|
gap: 30px;
|
|
max-height: calc(130vh - 100px);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.admin-giveitem-section {
|
|
background: radial-gradient(
|
|
49.48% 49.48% at 50.52% 50.52%,
|
|
#28343c 0%,
|
|
rgba(14, 21, 27, 0.8) 100%
|
|
);
|
|
border-radius: 15px;
|
|
padding: 20px;
|
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.admin-giveitem-section:last-child {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 15px;
|
|
border-bottom: 2px solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.section-header h3 {
|
|
color: #fff;
|
|
margin: 0;
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.search-container {
|
|
position: relative;
|
|
width: 300px;
|
|
}
|
|
|
|
.search-container input {
|
|
width: 100%;
|
|
padding: 12px 40px 12px 15px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border: 2px solid rgba(255, 255, 255, 0.18);
|
|
border-radius: 12px;
|
|
color: #fff;
|
|
font-size: 14px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.search-container input::placeholder {
|
|
color: rgba(255, 255, 255, 0.6);
|
|
}
|
|
|
|
.search-container input:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 20px rgba(0, 163, 255, 0.25);
|
|
}
|
|
|
|
.search-container i {
|
|
position: absolute;
|
|
right: 15px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: rgba(255, 255, 255, 0.6);
|
|
}
|
|
|
|
.player-list-container,
|
|
.item-list-container {
|
|
max-height: 280px;
|
|
overflow-y: auto;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.player-list,
|
|
.item-list {
|
|
padding: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.player-card,
|
|
.item-card {
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
border-radius: 12px;
|
|
padding: 15px;
|
|
margin-bottom: 10px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
animation: fadeIn 0.3s ease forwards;
|
|
}
|
|
|
|
.player-card:hover,
|
|
.item-card:hover {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-color: var(--primary-color);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 0 20px rgba(0, 163, 255, 0.25);
|
|
}
|
|
|
|
.player-avatar,
|
|
.item-image {
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 10px;
|
|
background: radial-gradient(
|
|
49.48% 49.48% at 50.52% 50.52%,
|
|
#28343c 0%,
|
|
rgba(14, 21, 27, 0.8) 100%
|
|
);
|
|
display: grid;
|
|
place-items: center;
|
|
color: #fff;
|
|
font-size: 20px;
|
|
flex-shrink: 0;
|
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.item-image img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.player-info,
|
|
.item-info {
|
|
flex: 1;
|
|
color: #fff;
|
|
}
|
|
|
|
.player-info h4,
|
|
.item-info h4 {
|
|
margin: 0 0 5px 0;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.player-info p,
|
|
.item-info p {
|
|
margin: 2px 0;
|
|
font-size: 12px;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
.select-player-btn,
|
|
.select-item-btn {
|
|
background: var(--primary-color);
|
|
border: none;
|
|
color: #fff;
|
|
width: 35px;
|
|
height: 35px;
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
display: grid;
|
|
place-items: center;
|
|
transition: all 0.2s ease;
|
|
opacity: 0;
|
|
box-shadow: 0 0 14px rgba(0, 163, 255, 0.3);
|
|
}
|
|
|
|
.player-card:hover .select-player-btn,
|
|
.item-card:hover .select-item-btn {
|
|
opacity: 1;
|
|
}
|
|
|
|
.select-player-btn:hover,
|
|
.select-item-btn:hover {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.selected-player-info,
|
|
.selected-item-info {
|
|
position: absolute;
|
|
left: 25px;
|
|
right: 25px;
|
|
bottom: 25px;
|
|
height: 84px;
|
|
opacity: 0;
|
|
transform: translateY(8px);
|
|
transition: opacity 0.18s ease, transform 0.18s ease;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.selected-item-info {
|
|
height: 120px;
|
|
}
|
|
|
|
.selected-player-info.is-visible,
|
|
.selected-item-info.is-visible {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.selected-item-card {
|
|
height: 130px !important;
|
|
}
|
|
|
|
.player-details p,
|
|
.item-details p {
|
|
font-size: 1.2vh;
|
|
}
|
|
|
|
.selected-player-card,
|
|
.selected-item-card {
|
|
height: 94px;
|
|
background: radial-gradient(
|
|
49.48% 49.48% at 50.52% 50.52%,
|
|
rgba(0, 163, 255, 0.15) 0%,
|
|
rgba(14, 21, 27, 1) 100%
|
|
);
|
|
border: 2px solid var(--primary-color);
|
|
border-radius: 12px;
|
|
padding: 15px;
|
|
display: grid;
|
|
grid-template-columns: 50px 1fr 25px;
|
|
align-items: center;
|
|
gap: 15px;
|
|
position: relative;
|
|
box-shadow: 0 0 18px rgba(0, 163, 255, 0.35);
|
|
overflow: hidden;
|
|
color: white;
|
|
}
|
|
|
|
.clear-selection {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
background: rgba(0, 163, 255, 0.18);
|
|
border: none;
|
|
color: #fff;
|
|
width: 25px;
|
|
height: 25px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
display: grid;
|
|
place-items: center;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.clear-selection:hover {
|
|
background: rgba(0, 163, 255, 0.28);
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.give-item-form {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 20px;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.form-group label {
|
|
color: #fff;
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group textarea {
|
|
padding: 12px 15px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border: 2px solid rgba(255, 255, 255, 0.18);
|
|
border-radius: 10px;
|
|
color: #fff;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.form-group input::placeholder,
|
|
.form-group textarea::placeholder {
|
|
color: rgba(255, 255, 255, 0.6);
|
|
}
|
|
|
|
.form-group input:focus,
|
|
.form-group textarea:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 16px rgba(0, 163, 255, 0.25);
|
|
}
|
|
|
|
.form-group textarea {
|
|
resize: vertical;
|
|
min-height: 80px;
|
|
font-family: "Poppins", sans-serif;
|
|
}
|
|
|
|
.give-item-summary {
|
|
grid-column: 1 / -1;
|
|
background: rgba(0, 163, 255, 0.08);
|
|
border: 1px solid var(--primary-color);
|
|
border-radius: 10px;
|
|
padding: 15px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.give-item-summary h4 {
|
|
color: var(--primary-color);
|
|
margin: 0 0 10px 0;
|
|
font-size: 16px;
|
|
color: white;
|
|
}
|
|
|
|
.give-item-summary p {
|
|
color: #fff;
|
|
margin: 0;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.form-actions {
|
|
grid-column: 1 / -1;
|
|
display: flex;
|
|
gap: 15px;
|
|
justify-content: flex-end;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.button-admin-secondary,
|
|
.button-admin-primary {
|
|
padding: 12px 25px;
|
|
border: 2px solid rgba(0, 163, 255, 0.18); /* Borde sutil */
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 800;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
transition: all 0.2s ease;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
background: rgba(0, 163, 255, 0.18);
|
|
color: white;
|
|
}
|
|
|
|
.button-admin-primary:hover,
|
|
.button-admin-secondary:hover {
|
|
background: rgba(0, 163, 255, 0.28);
|
|
border-color: rgba(
|
|
0,
|
|
163,
|
|
255,
|
|
0.5
|
|
); /* Borde más pronunciado al hacer hover */
|
|
transform: scale(1.05);
|
|
box-shadow: 0 0 8px rgba(0, 163, 255, 0.5); /* Sombra al pasar el mouse */
|
|
}
|
|
|
|
.loading-spinner,
|
|
.no-results {
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 40px;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
gap: 15px;
|
|
}
|
|
|
|
.loading-spinner i,
|
|
.no-results i {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.unique-badge {
|
|
background: linear-gradient(135deg, #1d67bb, #0fbeca);
|
|
color: #000;
|
|
padding: 2px 8px;
|
|
border-radius: 12px;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
margin-top: 5px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.player-list-container::-webkit-scrollbar,
|
|
.item-list-container::-webkit-scrollbar {
|
|
width: 0.3vh;
|
|
}
|
|
|
|
.player-list-container::-webkit-scrollbar-track,
|
|
.item-list-container::-webkit-scrollbar-track {
|
|
background: linear-gradient(
|
|
270deg,
|
|
rgba(69, 100, 129, 0) -26.87%,
|
|
#0e151b 100%
|
|
);
|
|
border-radius: 0.2vh;
|
|
}
|
|
|
|
.player-list-container::-webkit-scrollbar-thumb,
|
|
.item-list-container::-webkit-scrollbar-thumb {
|
|
background: var(--primary-color);
|
|
box-shadow: 0 0.1vh 20px var(--primary-color);
|
|
border-radius: 1.2vh;
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
.admin-giveitem-content {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.admin-giveitem-section:last-child {
|
|
grid-column: 1;
|
|
}
|
|
.give-item-form {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.admin-giveitem-modal {
|
|
width: 95%;
|
|
margin: 20px;
|
|
}
|
|
.admin-giveitem-content {
|
|
padding: 20px;
|
|
gap: 20px;
|
|
}
|
|
.admin-giveitem-header {
|
|
padding: 15px 20px;
|
|
}
|
|
.admin-giveitem-title h2 {
|
|
font-size: 20px;
|
|
}
|
|
.search-container {
|
|
width: 200px;
|
|
}
|
|
.form-actions {
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes modalSlideIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.8) translateY(-50px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1) translateY(0);
|
|
}
|
|
}
|
|
|
|
.summary {
|
|
max-height: 50vh;
|
|
}
|