/* Opção 1: Estilos para o Medidor Circular */

.disk-card-modern {
    max-width: 400px;
    margin: 20px auto;
    padding: 25px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 25px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: transform 0.2s ease-in-out;
}

.disk-card-modern:hover {
    transform: translateY(-5px);
}

/* Propriedade customizada para animar o preenchimento */
@property --p {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}

.progress-circle {
  --w: 100px; /* Largura/Altura do círculo */
  width: var(--w);
  height: var(--w);
  border-radius: 50%;
  display: grid;
  place-items: center;
  /* Fundo composto para criar o efeito de anel de progresso */
  background:
    radial-gradient(closest-side, white 84%, transparent 85% 100%),
    conic-gradient(var(--c, orange) calc(var(--p) * 1%), #e9ecef 0);
  animation: p-animation 1s 0.5s both;
}

/* Animação do preenchimento */
@keyframes p-animation {
  from { --p: 0; }
}

.progress-value {
    color: #343a40;
    font-size: 1.5em;
    font-weight: 600;
}

.disk-details {
    display: flex;
    flex-direction: column;
    color: #495057;
}

.disk-path {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.disk-usage-gb {
    font-size: 1em;
    color: #6c757d;
}

/* Estilo para a mensagem de erro */
.disk-card-modern-error {
    max-width: 400px;
    margin: 20px auto;
    padding: 25px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    border-radius: 15px;
    text-align: center;
    font-family: system-ui, -apple-system, sans-serif;
}

.alert-icon {
    font-size: 2em;
    margin-bottom: 10px;
}
