/* =========================
   STUDENT CERTIFICATE MANAGER
   PROFESSIONAL UI CSS
   ========================= */

/* Global box */


.scm-box {
    max-width: 720px;
    margin: 40px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Headings */
.scm-box h2,
.scm-box h3 {
    margin-bottom: 20px;
    text-align: center;
    color: #1d2327;
}

/* Form fields */
.scm-box input[type="text"],
.scm-box input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    font-size: 15px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.scm-box input:focus {
    border-color: #2271b1;
    background: #fff;
    outline: none;
}

/* Buttons */
.scm-box button,
.scm-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #2271b1, #135e96);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.scm-box button:hover,
.scm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
    color: #fff;
}

/* Table wrapper */
.scm-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    font-size: 14px;
}

/* Table head */
.scm-table th {
    background: #2271b1;
    color: #ffffff;
    padding: 12px;
    text-align: left;
}

/* Table cells */
.scm-table td {
    padding: 10px;
    border-bottom: 1px solid #e1e1e1;
    background: #fff;
}

/* Row hover */
.scm-table tr:hover td {
    background: #f6f7f7;
}

/* Table links */
.scm-table a {
    color: #2271b1;
    font-weight: 600;
    text-decoration: none;
}

.scm-table a:hover {
    text-decoration: underline;
}

/* Delete link */
.scm-table a[href*="delete"] {
    color: #d63638;
    font-weight: 600;
}

/* Alerts */
.scm-success {
    padding: 12px;
    background: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
    border-radius: 6px;
    margin-bottom: 15px;
}

.scm-error {
    padding: 12px;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
}

/* Public verify result */
.scm-result a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    background: #198754;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.scm-result a:hover {
    background: #157347;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .scm-box {
        margin: 20px;
        padding: 20px;
    }

    .scm-table th,
    .scm-table td {
        font-size: 13px;
        padding: 8px;
    }
}





/* Form layout */
.scm-boxs form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Input field */
.scm-boxs input[type="text"] {
    width: 100%;
    height: 45px;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #000;
    border-radius: 3px;
    outline: none;
    background: #f4f7f8 !important;
}

#loginform input[type="text"], #loginform input[type="password"] {
    width: 100%;
    height: 45px;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #000;
    border-radius: 3px;
    outline: none;
    background: #f4f7f8 !important;
}

/* Button */
.scm-boxs .searchbutton {
       width: 100% !important;
    height: 40px;
    background: #f4f7f8 !important;
    color: #555 !important;
    border: 1px solid #000 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    border-radius: 3px !important;
    transition: 0.3s ease !important;
    font-weight: bold !important;
    margin-top: 15px;
}
/* Button */
.scm-boxs .searchinput {
       width: 100% !important;
    height: 40px;
    background: #f4f7f8 !important;
    color: #555 !important;
    border: 1px solid #000 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    border-radius: 3px !important;
    transition: 0.3s ease !important;
   
    margin-top: 15px;
}


.scm-boxs button:hover {
    background: #e1e6e8;
}

/* Result success box */
.scm-result {
    margin-top: 15px;
    padding: 10px;
    background: #ffffff;
    text-align: center;
    border-radius: 3px;
}

.scm-result a {
    color: #0b5ed7;
    font-weight: 600;
    text-decoration: none;
}

/* Error message */
.scm-error {
    margin-top: 15px;
    padding: 10px;
    background: #fff;
    color: #d8000c;
    text-align: center;
    border-radius: 3px;
    font-weight: 600;
}

/* Horizontal separator look (like screenshot) */
.scm-boxs::after {
    content: "";
    display: block;
    margin-top: 18px;
    height: 2px;
    background: rgba(255,255,255,0.7);
}
