

.refresh-cert
{
    float: left; margin: auto 0;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-left: 20px;
    height: 100%; /* Ensure container takes full height of header */
    justify-content: center; /* Center logo horizontally within container */
}

.logo-container img {
    height: 44px; /* Increased for better visibility */
    width: auto;
    margin-right: 20px;
    vertical-align: middle; /* Ensure vertical alignment */
}
@media (max-width: 768px) {
  .logo-container img { height: 36px; }
}


.login-container {
    max-width: 550px;
    margin: 25px auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.login-header {
    margin-bottom: 7.5px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.login-header .logo {
    height: 40px;
}

.login-header h1 {
    color: #4f77a3;
    font-size: 14px;
    margin-bottom: 5px;
    width: 100%;
    text-align: center;
}

.login-header p {
    color: #666;
    font-size: 9px;
    width: 100%;
    text-align: center;
    position: relative;
    padding-bottom: 2.5px;
    margin-bottom: 0;
}

.header-divider {
    width: 25%;
    height: 0.5px;
    background-color: #e0e0e0;
    margin: 2.5px auto;
    border-radius: 0.75px;
}

.login-content {
    display: flex;
    margin-top: 60px;
    gap: 20px;
}

.login-options {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-explanation {
    flex: 1;
    background-color: #f9f9f9;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    transition: all 0.3s ease;
}

.explanation-content {
    display: none;
    text-align: center;
}

.explanation-content.active {
    display: block;
}

.explanation-content h3 {
    color: #4f77a3;
    margin-bottom: 15px;
    font-size: 22px;
}

.explanation-content p {
    color: #555;
    line-height: 1.6;
    font-size: 16px;
}

.login-option {
    background-color: white;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.login-option:last-child {
    border-bottom: none;
}

.login-option:hover, .login-option.active {
    background-color: #f0f7ff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.login-option-icon {
    width: 60px;
    height: 60px;
    background-color: #4f77a3;
    border-radius: 50%;
    border: 2px solid #2c4b6e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-weight: bold;
    font-size: 28px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.login-option-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.login-option-text h3 {
    margin: 0 0 3px 0;
    color: #333;
    font-size: 16px;
}

.login-option-text p {
    margin: 0;
    color: #666;
    font-size: 13px;
}





/* Styles from loginwpassword.html */
.form-container {
    max-width: 275px;
    min-width: 275px;
    margin: 0 auto;
    padding: 10px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    color: #333;
    font-size: 8px;
}
#pin {
    font-size: 18px;
    padding: 10px;
    height: 20px;
}


.form-group input {
    width: 100%;
    padding: 6px 7.5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #4f77a3;
    box-shadow: 0 0 0 2px rgba(79, 119, 163, 0.2);
    outline: none;
}

.form-group .input-icon-container {
    position: relative;
    display: flex;
}

.form-group .input-icon {
    position: absolute;
    right: 7.5px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    cursor: pointer;
    font-size: 12px;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me label {
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.remember-me input {
    margin-right: 12px;
}

.forgot-password {
    color: #4f77a3;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.sign-button {
    width: 100%;
    padding: 7px;
    background-color: #4f77a3;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sign-button:hover {
    background-color: #3a5d85;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sign-button:active {
    transform: translateY(0);
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    color: #4f77a3;
}

.back-link i {
    margin-right: 5px;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.password-requirements {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.password-strength {
    height: 5px;
    background-color: #eee;
    margin-top: 5px;
    border-radius: 5px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    background-color: #e74c3c;
    transition: all 0.3s ease;
}

.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login p {
    color: #666;
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #ddd;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Additional styles from loginwesignature.html */
.form-group select, .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: white;
}

/* Specific styling for PIN input to ensure it's smaller */
.form-group input#pin {
    padding: 6px 7.5px;
    border-radius: 5px;
    font-size: 8px;
}

.form-group select:focus, .form-group input:focus {
    border-color: #4f77a3;
    box-shadow: 0 0 0 2px rgba(79, 119, 163, 0.2);
    outline: none;
}

.info-box {
    background-color: #f8f9fa;
    border-left: 2px solid #4f77a3;
    padding: 7.5px;
    margin-bottom: 10px;
    border-radius: 0 5px 5px 0;
}

.info-box h5 {
    margin-top: 0;
    color: #4f77a3;
    text-align: center;
    font-size: 8px;
}

.info-box p {
    margin-bottom: 0;
    color: #555;
    font-size: 7px;
    line-height: 1.5;
}

.status-container {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    background-color: #f8f9fa;
    display: none;
}

.status-container.active {
    display: block;
}

.status-step {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.status-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 12px;
    color: white;
}

.status-icon.success {
    background-color: #2ecc71;
}

.status-icon.error {
    background-color: #e74c3c;
}

.status-icon.loading {
    background-color: #f1c40f;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.status-text {
    font-size: 14px;
    color: #555;
}

.status-text.success {
    color: #2ecc71;
}

.status-text.error {
    color: #e74c3c;
}

.driver-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.driver-info h4 {
    color: #4f77a3;
    margin-bottom: 10px;
}

.driver-info ul {
    padding-left: 20px;
    color: #555;
    font-size: 14px;
}

.driver-info li {
    margin-bottom: 5px;
}

.driver-info a {
    color: #4f77a3;
    text-decoration: none;
}

.driver-info a:hover {
    text-decoration: underline;
}


.certificate-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.warnings {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 12px;
    margin-bottom: 8px;
}
.warnings span {
    font-size: 10px;
    color: #0f54d6;
    margin-top: 3px;
}


.certificate-display {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #333;
    padding: 0 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.certificate-dates {
    font-size: 10px;
    color: #666;
    margin-top: 2.5px;
}

.token_description
{
    font-size: 10px;
    color: #666;
    margin-top: 2.5px;
}

.certificate-paging
{
    font-size: 10px;
    color: #666;
    margin-top: 2.5px;
}

.sign-to-text
{
    overflow: hidden;
    width: 100%;
    height: 100%;
    border: 0px;
    -webkit-user-modify: read-only;
    resize: none;
}

.nav-button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #555;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: #e0e0e0;
}

.nav-button:active {
    transform: scale(0.95);
}

/* Numeric keypad styles */
.keypad-container {
    margin-top: 7.5px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.keypad-button {
    padding: 10px 0;
    background-color: #e8e8e8;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.keypad-button:hover {
    background-color: #d8d8d8;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
}

.keypad-button:active {
    transform: scale(0.95);
}

.keypad-button.clear {
    background-color: #ffebee;
    color: #e53935;
    border-color: #e53935;
}

.keypad-button.backspace {
    background-color: #e8f5e9;
    color: #43a047;
    border-color: #43a047;
}

/* Additional responsive adjustments */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
    }

    .form-container {
        width: 100%;
        padding-right: 0;
        order: 1; /* Keep form first in mobile view */
    }

    .driver-info {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
        order: 2; /* Keep driver info second in mobile view */
    }
}

@media (max-width: 600px) {
    .form-container {
        padding: 15px;
    }

    .keypad-button {
        padding: 8px 0;
        font-size: 12px;
    }

    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .social-login p::before,
    .social-login p::after {
        width: 25%;
    }

    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
}

/* Signature text link styles */
.signature-text-link {
    text-align: center;
    margin: 7.5px 0;
}

.signature-text-link a {
    color: #4f77a3;
    text-decoration: none;
    font-size: 7px;
    display: inline-block;
    padding: 2.5px 5px;
    border: 1px solid #e0e0e0;
    border-radius: 2.5px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.signature-text-link a:hover {
    background-color: #e8f4ff;
    border-color: #4f77a3;
    color: #3a5d85;
}

.signature-text-link a:before {
    content: "📝 ";
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: 70%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: #4f77a3;
    text-decoration: none;
}

.modal-content h3 {
    color: #4f77a3;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.signature-text-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 5px;
    color: #333;
    line-height: 1.6;
}

.signature-text-content p {
    margin-bottom: 15px;
}

.signature-text-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.signature-text-content li {
    margin-bottom: 8px;
}

.signature-date {
    font-style: italic;
    color: #666;
    text-align: right;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

@keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}



.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login p {
    color: #666;
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #ddd;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Tooltip styles for social icons */
.social-icon {
    position: relative;
}

.social-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.social-icon:hover::after {
    opacity: 1;
    visibility: visible;
}



.disabled-container {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner img
{
    width: 50px;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 120px;
    overflow-y: auto;
}

.file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.file-list li .icon {
    margin-left: auto;
}

/* loader & signed ikonları senin daha önce verdiğinle aynı */


/* ✔ İmzalanmış belge */
.file-list li.signed {
    color: #999;
    background-color: #f0f0f0;
    border-left: 4px solid #2ecc71;
}

.file-list li.signed .icon {
    color: #2ecc71;
    font-weight: bold;
    font-size: 14px;
    margin-left: auto;
}

/* ⏳ Şu an imzalanıyor */
.file-list li.signing {
    background-color: #fffbe6;
    border-left: 4px solid #f1c40f;
    animation: pulse-bg 1.5s infinite;
}

@keyframes pulse-bg {
    0% { background-color: #fffbe6; }
    50% { background-color: #fff2b3; }
    100% { background-color: #fffbe6; }
}

.file-list li.signing .loader {
    width: 12px;
    height: 12px;
    border: 2px solid #f1c40f;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


.notification-message-live {
    color: #e74c3c;
    font-size: 14px;
    margin: 10px 0;
    padding: 10px 10px 10px 45px;
//  background-color: #ffebee;
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
    display: none;
//padding-left: 45px;
    position: relative; /* Pozisyon ayarı için eklendi */
}

.notification-message {
    color: #e74c3c;
    font-size: 14px;
    margin: 10px 0;
    padding: 10px 10px 10px -5px;
//  background-color: #ffebee;
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
    display: block;
    position: relative; /* Pozisyon ayarı için eklendi */
}

.notification-message ul
{
    list-style-type: none;
}

.notification-message-live ul
{
    list-style-type: none;
}

.notification-message-live img,.notification-message img {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: 15px; /* Resmin boyutunu ayarlayın */
    width: auto;
}


.disabled-button,.disabled-button:hover
{
    background-color:#cbcbcb;
}


.enabled-button, .enabled-button:hover
{
    background-color:#4f77a3;
}

