/* Nametag Label Designer Styles */

/* Label Preview */
.label-preview {
    border: 3px solid #f1c40f;
    border-radius: 8px;
    background-color: white;
    height: 162px;  /* 2.25 inches * 72 points per inch */
    width: 252px;   /* 3.5 inches * 72 points per inch */
    margin: 0 auto;
    position: relative;
    color: #000;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    display: flex;
    flex-direction: column;
}

.nametag-header {
    background-color: #f1c40f;
    color: black;
    padding: 5px 10px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    width: 100%;
    text-transform: uppercase;
}

.preview-content {
    padding: 8px 5px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 12pt;
    overflow-y: auto;
}

.name-field {
    font-size: 30px; /* Following specifications: 28-32pt */
    font-weight: bold; /* Always bold for name as specified */
    margin-bottom: 4px;
    line-height: 1.2;
    text-align: center; /* Always center the name */
    width: 100%; /* Ensure full width for centering */
    display: flex;
    justify-content: center; /* Ensure horizontal centering */
    align-items: center; /* Ensure vertical centering */
}

.title-field {
    font-size: 17px; /* Following specifications: 16-18pt */
    margin-bottom: 2px;
    line-height: 1.2;
    color: #6c757d; /* Bootstrap gray color */
    font-weight: normal; /* Regular weight for title as specified */
    font-style: italic; /* Now italicized per user request */
    width: 100%;
    text-align: center; /* Always center the title */
}

.company-field {
    font-size: 15px; /* Following specifications: 14-16pt */
    line-height: 1.2;
    color: #6c757d; /* Bootstrap gray color */
    font-weight: normal;
    font-style: normal; /* No longer italicized per user request */
    width: 100%;
    text-align: center; /* Always center the company */
}

.preview-placeholder {
    color: #999;
    text-align: center;
    font-style: italic;
}

/* Form Controls */
.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .label-preview {
        width: 189px; /* 75% of original */
        height: 121.5px; /* 75% of original */
    }
}

@media (max-width: 576px) {
    .label-preview {
        width: 126px; /* 50% of original */
        height: 81px; /* 50% of original */
    }
}

/* Error Message Styling */
.error-message {
    color: var(--bs-danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Font Preview Styles */
.font-helvetica { font-family: Helvetica, Arial, sans-serif; }
.font-times { font-family: "Times New Roman", Times, serif; }
.font-courier { font-family: "Courier New", Courier, monospace; }
.font-arial { font-family: Arial, Helvetica, sans-serif; }
.font-fraunces { font-family: "Fraunces", serif; }

.font-bold { font-weight: bold; }
.font-italic { font-style: italic; }

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

/* Logo styling */
.logo {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    z-index: 10;
}

.preview-content {
    position: relative; /* To allow proper logo positioning */
}
